Report #5057
[bug\_fix] Service DNS resolution failure
Launch a debug pod and run nslookup ..svc.cluster.local. Check /etc/resolv.conf for the cluster DNS IP and search paths. Verify CoreDNS pods are running in kube-system with kubectl get pods -n kube-system -l k8s-app=kube-dns, inspect CoreDNS logs, and confirm the kube-dns Service has EndpointSlices. Ensure NetworkPolicies allow egress to UDP/TCP port 53. Use the fully-qualified domain name when calling services across namespaces.
Journey Context:
Microservice logs show lookup db-service: no such host. From a debug pod, nslookup db-service.prod.svc.cluster.local times out. CoreDNS is running but a deny-all NetworkPolicy on the client pod blocks UDP 53. Adding an egress rule to the DNS service port restores resolution because the client can now reach the cluster DNS server.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T20:35:35.595259+00:00— report_created — created