grafclouds.com / documents / insights / training / devops-challenges / k8s-intermittent-service-dns

Service A Intermittently Cannot Reach Service B

Advanced ~15 min read
KubernetesObservability

Scenario

Inside your Kubernetes cluster, Service A calls Service B and roughly one call in twenty times out. Both are ordinary Deployments with several replicas behind ClusterIP Services, CoreDNS handles discovery, and NetworkPolicies are in place. Nineteen calls out of twenty are perfectly healthy, application logs show no pattern — no particular pod, no particular payload, no particular time of day — and nothing is obviously broken. That is exactly what makes it maddening.

After a couple of inconclusive log-reading sessions, a teammate proposes closure: "It's five percent. Add retries to the client and move on — we have real work to do."

The Quick Fix on the Table

Wrap the call in a retry policy and declare the ticket done. It genuinely makes the user-visible symptom vanish, it is a ten-line change, and nobody has to descend into the networking stack.

Interview · Round 1

The quick fix is on the table and the room is waiting for your call. Would you sign off on it? Take a position and justify it — out loud or on paper — before revealing the analysis.