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

[kubelet] Auto-discover node IP if neither cloud provider exists and IP is not explicitly specified #29907

Merged
merged 1 commit into from
Aug 6, 2016

Conversation

luxas
Copy link
Member

@luxas luxas commented Aug 2, 2016

One example where the earlier implementation failed is when running kubelet on CoreOS (bare-metal), where the nameserver is set to 8.8.8.8. kubelet tries to lookup the node name agains Google DNS, which obviously fails. The kubelet won't recover after that.

The workaround hsa been to set --hostname-override to an IP address, but it's quite annoying to try to make a multi-distro way of getting the IP in bash for example. This way is much cleaner.

Refactored the function a little bit at the same time

@vishh @yujuhong @resouer @Random-Liu

@luxas
Copy link
Member Author

luxas commented Aug 2, 2016

Is this worthy a release note?

@k8s-github-robot k8s-github-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. release-note-label-needed labels Aug 2, 2016
@luxas luxas force-pushed the lookup_ip_better branch from 24e6cbd to 25d9779 Compare August 2, 2016 11:03
@k8s-bot
Copy link

k8s-bot commented Aug 2, 2016

GCE e2e build/test passed for commit 25d9779.

@luxas
Copy link
Member Author

luxas commented Aug 5, 2016

@k8s-bot node_e2e test this please github issue: #IGNORE

@luxas
Copy link
Member Author

luxas commented Aug 5, 2016

@k8s-bot node e2e test this please github issue: #IGNORE

@vishh
Copy link
Contributor

vishh commented Aug 5, 2016

This LGTM. Thanks for the cleanup @luxas

@vishh
Copy link
Contributor

vishh commented Aug 5, 2016

lgtm

@vishh vishh changed the title Make the lookup function of the node ip address more robust [kublet] Auto-discover node IP if neither cloud provider exists and IP is not explicitly specified Aug 5, 2016
@vishh
Copy link
Contributor

vishh commented Aug 5, 2016

@luxas I updated the PR title to make it suitable for release notes. PTAL

@luxas luxas changed the title [kublet] Auto-discover node IP if neither cloud provider exists and IP is not explicitly specified [kubelet] Auto-discover node IP if neither cloud provider exists and IP is not explicitly specified Aug 6, 2016
@luxas
Copy link
Member Author

luxas commented Aug 6, 2016

Great! Seems like the auto-lgtm-bot isn't active yet, so adding I'm the labels now

@luxas luxas added lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed release-note-label-needed labels Aug 6, 2016
@k8s-github-robot
Copy link

@k8s-bot test this [submit-queue is verifying that this PR is safe to merge]

@k8s-bot
Copy link

k8s-bot commented Aug 6, 2016

GCE e2e build/test passed for commit 25d9779.

@k8s-github-robot
Copy link

Automatic merge from submit-queue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants