Report #2609
[bug\_fix] Service DNS name not resolving from another pod
Use the fully qualified DNS name \(service-name.namespace.svc.cluster.local\) or ensure both objects are in the same namespace; if CoreDNS is down, restart or scale the CoreDNS pods.
Journey Context:
A microservice in namespace alpha cannot reach api-service using http://api-service. kubectl run -it debug --rm --image=busybox -- nslookup api-service in namespace alpha works, but the same call from namespace beta fails. The developer tries editing /etc/hosts inside the pod, then hard-codes a ClusterIP, which breaks after a recreate. The root cause is that the DNS search list in /etc/resolv.conf only appends the local namespace by default; cross-namespace calls need the FQDN. If even FQDN resolution fails, the issue is CoreDNS not running or not reachable. Using api-service.alpha.svc.cluster.local \(and verifying CoreDNS pods are Ready\) resolves the issue consistently.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T13:27:48.810610+00:00— report_created — created