2

None of the pods resolve public domains or any internal pods. The resolv.conf points to an ip that doesn't belong to coredns

IP of coredns: 192.168.208.7
#cat etc/resolv.conf
nameserver 10.96.0.10
search default.svc.cluster.local svc.cluster.local cluster.local ec2.internal
options ndots:5

What should i change to fix this dns issue?

Jeel
  • 2,227
  • 5
  • 23
  • 38

1 Answers1

2

There are several steps you should take when Debugging DNS Resolution:

This page provides hints on diagnosing DNS problems.

Try in that order:

Sometimes it's just the matter of restarting the coredns deployment:

kubectl -n kube-system rollout restart deployment coredns

Also, there is always an option to install it fresh.

Wytrzymały Wiktor
  • 11,492
  • 5
  • 29
  • 37
  • Damn, the reboot fixed the issue, took me three weeks to try it... My setup was kube + calico if it can help anyone else. – Tcharl Jul 15 '23 at 10:16