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 →
- Explain that kube-proxy balances per TCP connection, not per request
- Use a headless Service with client-side load balancing in the gRPC client
- Or put an L7 proxy such as Envoy or a mesh (Linkerd, Istio) in front
- Or use the ALB or ingress with gRPC support
- 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.
More on Services, Ingress and DNS
A Service has no endpoints. How do you find out why?BeginnerWhen do you use ClusterIP, NodePort, LoadBalancer and ExternalName?BeginnerTraffic to a Service works from some pods but times out from others. How do you debug it?AdvancedYou want to expose three HTTP services under one hostname with different paths. How?Intermediateingress-nginx returns 404 for a new host. What do you check?Intermediateingress-nginx returns 502 or 503 intermittently. What are the likely reasons?Intermediate