close
The Wayback Machine - https://web.archive.org/web/20201117204440/https://github.com/k0sproject/k0s/pull/395
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
Collaborator

@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

trawler added 2 commits Nov 12, 2020
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 k0sproject/k0s-core as a code owner Nov 13, 2020
@trawler trawler requested review from soider, jnummelin and ncopa and removed request for k0sproject/k0s-core Nov 13, 2020
Copy link
Contributor

@jasmingacic jasmingacic left a comment

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

@trawler trawler merged commit 73e5ec4 into k0sproject:main Nov 13, 2020
11 checks passed
11 checks passed
Build
Details
mergeable
Details
Lint Lint
Details
Smoke test
Details
Smoke test for HA controlplane operations
Details
Smoke test for BYO CRI feature
Details
Smoke test for helm based addons
Details
Smoke test for single node k0s
Details
Smoke test for kine backed
Details
Smoke test for network
Details
DCO DCO
Details
@trawler trawler deleted the trawler:resolvConf_kubelet branch Nov 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

2 participants
You can’t perform that action at this time.