CoreDNS Pods are in CrashLoopBackOff with `[FATAL] plugin/loop: Loop (127.0.0.1:41823 -> :53) detected for zone "."`.
IntermediateTroubleshootingServices, DNS, Ingress and NetworkPolicy
Answer
Likely causes → CoreDNS forwards to the node's /etc/resolv.conf, which points at a local stub resolver (127.0.0.53 from systemd-resolved). Inside the CoreDNS Pod that address is CoreDNS itself, creating a loop.
Diagnose →
kubectl logs -n kube-system -l k8s-app=kube-dns --previous
# On the node
cat /etc/resolv.conf
grep resolvConf /var/lib/kubelet/config.yaml
Fix → Point the kubelet at the real upstream file: resolvConf: /run/systemd/resolve/resolv.conf, restart kubelet and CoreDNS. Or set forward . 10.0.0.2 (your VPC/upstream resolver) in the Corefile instead of /etc/resolv.conf.
Prevent → Set resolvConf correctly in the node bootstrap for Ubuntu/systemd-resolved hosts.
More on Services, DNS, Ingress and NetworkPolicy
`curl http://orders.shop.svc.cluster.local` hangs, and `kubectl get endpointslices -l kubernetes.io/service-name=orders` shows `ENDPOINTS <unset>`.BeginnerEndpoints exist, but `curl orders:80` returns `Connection refused`.BeginnerA Service works when you curl the Pod IP but times out on the ClusterIP from every node.IntermediateInside a Pod, `nslookup orders` returns `;; connection timed out; no servers could be reached`.BeginnerCalls to `api.stripe.com` from Pods are slow, and CoreDNS logs show `api.stripe.com.payments.svc.cluster.local`, `api.stripe.com.svc.cluster.local` … all `NXDOMAIN`.IntermediateDNS lookups occasionally take exactly 5 seconds, then succeed.Advanced