-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Update kube-proxy to handle aws returning multiple hostnames #3067
Conversation
Amazon's dhcp service supports returning a space separated list of hostnames. This patch makes sure to split the domains first before picking the hostname override. Closes kubernetes#3060.
Hi @erickt. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with I understand the commands that are listed here. 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/test-infra repository. I understand the commands that are listed here. |
@justinsb does it matter which host name we use? |
/ok-to-test |
The other way I suppose is skipping the aws metadata server and Looking up the fully qualified domain name (which kops might already be doing?). I'm not sure how to do a getaddrinfo in go but I did find this stack overflow about how to do it. |
So the node name does have to match the privatednsname, but we also override the node name in the aws cloud provider e.g. https://github.com/kubernetes/kubernetes/blob/master/pkg/cloudprovider/providers/aws/aws.go#L1496-L1503 I suggest getting this merged as it fixes a clear issue, and then seeing if picking the first name goes wrong. I don't think it will as I think this name is now mostly not used as a key but rather simply for information / diagnostics. I think. Out of interest @erickt , what is the use case for multiple hostnames in DHCP? Seems likely to cause problems :-) |
@justinsb. In my case, defining multiple |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: erickt, justinsb The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/test all [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue |
Amazon's dhcp service supports returning a space separated list of hostnames. This patch makes sure to split the domains first before picking the hostname override.
Closes #3060.