-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fix core-dns issue for my local minikube cluster #3
Comments
This started happening recently |
https://minikube.sigs.k8s.io/docs/handbook/host-access/ Seems like minikube has a way to access the host aka docker/vm inside which my cluster is running. When I started the minikube cluster today, I saw the host IP changed in core-dns ConfigMap in kube-system namespace
This corresponds to the change in /etc/hosts on
Ref: https://hugomartins.io/essays/2019/12/access-host-resources-minikube/ It seems like core-dns tries to access host IP when it wants to reach to a website out of cluster. |
I can access the minikube host from
|
Looks like it might be worth deleting minikube and re-installing it all over again. |
Deleted all the stopped and running clusters and the Started a new cluster with the default docker driver
Still see the same issue
|
Tried creating a k3d cluster to see if I see the same problem there too
core-dns doesn't seem to throw the same error for k3d
|
Tried running
I am able to install curl in dnsutils pod
Networking seems to be working for dnsutils pod (which sits in the same namespace as the Started a thread in #keptn-app-lifecycle-wg channel on CNCF slack: https://cloud-native.slack.com/archives/C0470F49FB2/p1668403607546299 |
https://coredns.io/plugins/hosts/ Since the host is inlined above,
|
|
ping works but coredns prints errors
|
Created an issue in minikube repo: kubernetes/minikube#15354 |
Downgrading my minikube to 1.24 to see if it has any effect.
Reverted back to minikube 1.28 Might be related: kubernetes/minikube#8949 DNS doesn't resolve for external domains
Resolves for internal domains
https://kubernetes.io/docs/tasks/debug/debug-application/debug-running-pod/
Looks like coredns depends on the minikube nameserver to resolve the DNS for itself
minikube also uses the same nameserver to resolve DNS
and it works for external domains
host.minikube.internal is accessible on dnsutils pod but not on coredns pod for some reason
dnsutils:
kubernetes/minikube#8439 (comment)
Still see the same error in coredns 😢
TODO:
Tried
coredns still spits the same error:
Might be related: canonical/microk8s#1427 Updated the nameserver in the Corefile of coredns to point to
to
coredns stopped throwing
But when I try
|
It's not limited to
|
Re-installing docker didn't help either. Trying to re-install my Xubuntu. |
Re-installed Xubuntu |
DNS resolution from inside
in CoreDNS config doesn't help. |
|
I can't curl
|
I had Removing |
@vadasambar I'm having the same exact issue that you've been describing here. I'm running Ubuntu 22.04.1 LTS (5.19.0-35-generic) I don't have anything in /etc/resolv.conf except for the following
Within minikube I got
DNS doesn't work, neither I have internet connectivity from within pods, and internal DNS doesn't work either - can't reach any k8s internals from within pods. Do you have any suggestions please? Minikube version
|
@eldarj does this happen in a fresh new minikube cluster as well? I would check the |
@vadasambar thanks a lot for the reply. Regarding the
But, I fixed this by enabling IPv4 forwarding on my host itself with:
either that, or uncommenting Everything worked out after this. However, I am not entirely sure why ipv4 forwarding on the host is affecting minikube's internal communication |
@eldarj glad to know the problem is fixed.
Interesting. I think you might be using docker's networking (instead of a Kubernetes CNI plugin) which needs IP forward enabled.
kubernetes/minikube#8445 (comment)
|
@vadasambar yes indeed, I missed that small detail, and I am running minikube with the docker driver. Thanks! |
Problem
The text was updated successfully, but these errors were encountered: