Skip to content

DNS problems on Kubeadm cluster on Ubuntu 22.04 #6497

Closed Answered by chrisohaver
urbaman asked this question in Q&A
Discussion options

You must be logged in to vote

In Kubernetes, hosts and pods use different resolv.conf files. The one pods use is constructed by kubelet and contains a list of cluster domains including local domains from the resolv.conf of the pod’s host. You’ll want to override that and tell kubelet to use an alternate resolv.conf - which would be a resolv.conf with your hosts upstreams, but without the private domain.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@urbaman
Comment options

@chrisohaver
Comment options

Answer selected by urbaman
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants