Kubernetes: Pods Can't Resolve Hostnames Kubernetes: Pods Can't Resolve Hostnames kubernetes kubernetes

Kubernetes: Pods Can't Resolve Hostnames


I had a similar problem. Restarting the coredns deployment solved it for me:

kubectl -n kube-system rollout restart deployment coredns


Encountered the same issue. I followed this doc dns-debugging-resolution and checked DNS related pods, services, endpoints, all was running without error messages. Finally, I found my calico service was dead. After I started calico service and waited several minutes, It worked.


Some ideas come to mind: