Interview Prep/Kubernetes/Services, Ingress and DNS

gRPC traffic goes to only one pod behind a ClusterIP Service. Why and how do you fix it?

IntermediateScenarioServices, Ingress and DNS
Answer

Situation read → Long-lived HTTP/2 connections get pinned to one backend.

What I'd do →

  1. Explain that kube-proxy balances per TCP connection, not per request
  2. Use a headless Service with client-side load balancing in the gRPC client
  3. Or put an L7 proxy such as Envoy or a mesh (Linkerd, Istio) in front
  4. Or use the ALB or ingress with gRPC support
  5. Set max connection age on servers to force reconnects

Why → HTTP/2 multiplexes many requests on one connection, so connection-level balancing yields skew.

Interview tip → Name the concept: L4 vs L7 load balancing.

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Services, Ingress and DNS