Skip to content
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 daemonset to set overrideHostname #190

Merged
merged 1 commit into from
May 25, 2018

Conversation

detiber
Copy link
Contributor

@detiber detiber commented May 23, 2018

Fixes: #173

Signed-off-by: Jason DeTiberus detiber@gmail.com

@timothysc
Copy link
Contributor

timothysc commented May 24, 2018

So if I get this change, there is a local setting override in a global config map for the kube-proxy that needs to be set so you update that setting with an init container before the proxy is run?

If so, that seems more like a general problem with the defaults for the proxy...

@detiber

@timothysc timothysc self-requested a review May 24, 2018 14:23
@seh
Copy link

seh commented May 24, 2018

This is another manifestation of assuming that the hostname of the machine matches the node name, which doesn't work out in AWS, where the node name has to match the host's DNS name, not its (short, unqualified) hostname.

@detiber
Copy link
Contributor Author

detiber commented May 24, 2018

So if I get this change, there is a local setting override in a global config map for the kube-proxy that needs to be set so you update that setting with an init container before the proxy is run?

Correct, the other option would be to update the command arguments in the daemonset using the downward api, but #sig-network has marked that that option as deprecated. Considering the time constraints, I will file an upstream issue against kubeadm and add a comment linking to it.

If so, that seems more like a general problem with the defaults for the proxy...

I agree and it has been brought up in a few different issues in the past, I've added a comment here: kubernetes/kubernetes#57518

This really stems from the larger issue of multiple components assuming that node name == hostname.

@detiber detiber force-pushed the kubeProxyOverrideHostname branch from 1cd21e7 to 5084b2f Compare May 24, 2018 18:43
@detiber
Copy link
Contributor Author

detiber commented May 24, 2018

@timothysc updated to include a comment and link to the kubeadm issue.

Copy link
Contributor

@timothysc timothysc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

I'm ok with as a temporary workaround, but let's work upstream to fix this.

Signed-off-by: Jason DeTiberus <detiber@gmail.com>
@detiber detiber force-pushed the kubeProxyOverrideHostname branch from bd4636a to ad71b4c Compare May 25, 2018 14:39
@detiber detiber merged commit 5921851 into heptio:master May 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants