-
Notifications
You must be signed in to change notification settings - Fork 1.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
Use node ip autodiscovery #1513
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: aojea The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
30b2b59
to
3c47665
Compare
/hold |
the apiserver autodetection is working
kubelet is failing because of |
only resolve IPv6 addresses non-local nodes 🤔
|
/assign @BenTheElder |
@@ -20,7 +20,7 @@ package nodeimage | |||
const DefaultImage = "kindest/node:latest" | |||
|
|||
// DefaultBaseImage is the default base image used | |||
const DefaultBaseImage = "kindest/base:v20200423-30be2258" | |||
const DefaultBaseImage = "aojea/kindbase:auto" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is built with current PR, it's being added on a temporal commit just to test it works on CI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll rebase and push an image after reviewing the other changes 👍
@@ -180,6 +180,10 @@ enable_network_magic(){ | |||
cp /etc/resolv.conf /etc/resolv.conf.original | |||
sed -e "s/${docker_embedded_dns_ip}/${docker_host_ip}/g" /etc/resolv.conf.original >/etc/resolv.conf | |||
|
|||
# use dns to resolve hostnames with more priority than files | |||
cp /etc/nsswitch.conf /etc/nsswitch.conf.original |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what was the original value?
why aren't we statically rewriting this in the baseimage build?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
debian should be hosts: dns [!UNAVAIL=return] files
I think, which is actually a little surprising, I thought most distros were shipping ~files dns
golang/go#35305
https://manpages.debian.org/stretch/manpages/nsswitch.conf.5.en.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are correct, the original was files dns
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't think about the original bare honestly, added to the entry point because is where we are adding these hacks
rewrote the second commit and pushed a new PR #1518 |
superseded #1521 |
Alternative to #1512
Fixes #1154