Nothing Special   »   [go: up one dir, main page]

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

Add "resolv-conf" flag to Kubelet for CoreDNS #395

Merged
merged 2 commits into from
Nov 13, 2020

Conversation

trawler
Copy link
Contributor
@trawler trawler commented Nov 13, 2020

Issue
Fixes #390

What this PR Includes
This PR removes the need for "hacking" the resolv.conf file in systemd-resolvd systems, by finding out the "real" resolv.conf file and passing it as the value for the --resolv-conf flag in kubelet.

e2e
https://github.com/k0sproject/k0s/actions/runs/361469902

Karen Almog added 2 commits November 13, 2020 11:53
For systemd-resolvd based systems, core-DNS will fail to start.
Using moby/libnetwork, we can detect that, and point kubelet to the real
DNS config file.

Signed-off-by: Karen Almog <kalmog@mirantis.com>
Signed-off-by: Karen Almog <kalmog@mirantis.com>
@trawler trawler requested a review from a team as a code owner November 13, 2020 11:06
@trawler trawler requested review from mikhail-sakhnov, jnummelin and ncopa and removed request for a team November 13, 2020 11:06
Copy link
Contributor
@jasmingacic jasmingacic left a comment

Choose a reason for hiding this comment

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

Tested it with multipass and it worked out of the box. LGTM

@trawler trawler merged commit 73e5ec4 into k0sproject:main Nov 13, 2020
@trawler trawler deleted the resolvConf_kubelet branch November 13, 2020 12:22
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.

Fix CoreDNS loop problem
2 participants