Interview Prep/Networking/Kubernetes & Service Networking in Production

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.

All Networking questions Roadmap: Networking for DevOps

More on Kubernetes & Service Networking in Production