-
Notifications
You must be signed in to change notification settings - Fork 14.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in "Using Source IP" tutorial #48828
Comments
This issue is currently awaiting triage. SIG Docs takes a lead on issue triage for this website, but any Kubernetes member can accept issues by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Page reported in issue: https://kubernetes.io/docs/tutorials/services/source-ip/ |
/retitle Error in "Using Source IP" tutorial /priority awaiting-more-evidence We've assumed a POSIX shell. Can you show that the current command doesn't work with a POSIX shell @habib-source? |
In the previous comment I used zsh that's why it didn't work I've just uses bash and it works :
Work:
Bash:
Does not work:
I did not think that there was a difference between zsh and bash when it comes to syntax, I will consider this next time. |
https://kubernetes.io/docs/tutorials/services/source-ip/
in the Source IP for Services with Type=NodePort section
This will return a single string of a list of IP address.
The right form is :
Wish will return an array of strings of IP address.
So this function work correctly :
Here, NODES are expected to be an array, not a single string.
The text was updated successfully, but these errors were encountered: