What is topology-aware routing and when does it help?
IntermediateProductionKubernetes & Service Networking in Production
Answer
EndpointSlice hints let kube-proxy or Cilium prefer endpoints in the same zone as the client, lowering latency and cross-AZ transfer charges. It needs pods spread evenly across zones, otherwise hints are disabled or load becomes uneven.
metadata:
annotations:
service.kubernetes.io/topology-mode: Auto
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