-
Notifications
You must be signed in to change notification settings - Fork 40k
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
the "publicIPs" field should be validated for actual IP address values #4897
Comments
Some related discussion and material:
I don't know the answer to your question but this may be useful context. It seems strange to have |
Honestly, it was user error on my part. I was going through some training material where hostnames or IP addresses could be used in the kubernetes config files. For example:
or
I assumed the same applied to the services JSON and I was wrong. 😞 However, I think this sort of validation may be helpful for newcomers that aren't extremely familiar with kube. |
Yep, definitely a bug in service validation. Will work on a fix. Thanks Brendan
|
Brendan - are you working on this (no assignee)? If not I can fix it. |
FYI - #5228 added a comment to types.go about expected value of publicIPs, so this should be more obvious what to put there in the future. |
Is 0.0.0.0 valid? |
Setup
Description
When creating a simple service, I tried using a hostname for the
publicIPs
field as show below:When I fed that service to
kubectl
, it happily tried to create it.However, when the minion tried to start up the service, it was unable to create the necessary
iptables
rules to start the service:When I changed the value of
publicIPs
to an actual IP address, theiptables
rules on the minions were successfully created.This leads be to believe there should be some validation of the
publicIPs
field to make sure that actual IP addresses are provided.The text was updated successfully, but these errors were encountered: