How do you troubleshoot slow pod-to-pod latency?
IntermediateProductionKubernetes & Service Networking in Production
Answer
Check whether pods are cross-AZ (add 1–2 ms and billing), CPU throttling of the app, conntrack saturation, DNS lookups on each request, overlay MTU fragmentation, sidecar overhead, and noisy neighbors on the node.
kubectl exec -it a -- curl -s -o /dev/null -w "%{time_namelookup} %{time_connect} %{time_starttransfer}\n" http://b
Use topology-aware routing (service.kubernetes.io/topology-mode: Auto) to keep traffic in-zone when possible.
More on Kubernetes & Service Networking in Production
How do you expose an application on Kubernetes to the internet in production?BeginnerALB IP mode versus instance mode on EKS: which should you use?IntermediateHow do you achieve graceful pod shutdown with no dropped requests?AdvancedHow do readiness, liveness and startup probes interact with traffic?BeginnerHow do you design default-deny NetworkPolicies without breaking DNS?IntermediateHow do you debug "pod cannot reach service" in Kubernetes?Advanced