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

DO node metadata InternalIP is set incorrectly #424

Closed
dghubble opened this issue Mar 13, 2019 · 0 comments
Closed

DO node metadata InternalIP is set incorrectly #424

dghubble opened this issue Mar 13, 2019 · 0 comments

Comments

@dghubble
Copy link
Member

dghubble commented Mar 13, 2019

Node metadata InternalIP is correct on AWS, Azure, GCP, and bare-metal, but regressed on DO in v1.12.3.

Historically, DigitalOcean node registration has been the troublesome one. Originally, DigitalOcean kubelets used --hostname-override to register with an internal IP to workaround DO not resolving hostnames like other clouds. Later, a feature request asked for friendly node names (e.g. worker-1, not IP). A (still legitimate) change to apiserver addressing preference was made across platforms. That (seemingly) allowed DO's override to be dropped and pretty names used. This did cause a regression in etcd scraping on DO, which was fixed before v1.12.3.

But the original behavior was correct. When DO registers its hostname (e.g. nemo-controller-0), unlike other cloud providers, DO does not resolve that to an internal IP. Instead, Kubelet has to fallback to using the IP of the default gateway, which is the public IP. Preferred addressing is irrelevant.

I'll fix this weekened. Overall, its not impacting to cluster usability, firewall rules are by tag (source) which is why its fine. But DO should go back to registering kubelets via internal IP for correctness.

dghubble added a commit that referenced this issue Mar 14, 2019
* Restore the original special-casing of DigitalOcean Kubelets
* Fix node metadata InternalIP being set to the IP of the default
gateway on DigitalOcean nodes (regressed in v1.12.3)
* Reverts the "pretty" node names on DigitalOcean (worker-2 vs IP)
* Closes #424 (full details)
dghubble added a commit that referenced this issue Mar 17, 2019
* Restore the original special-casing of DigitalOcean Kubelets
* Fix node metadata InternalIP being set to the IP of the default
gateway on DigitalOcean nodes (regressed in v1.12.3)
* Reverts the "pretty" node names on DigitalOcean (worker-2 vs IP)
* Closes #424 (full details)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant