Interview Prep/Kubernetes/Services, Networking, Ingress & Gateway API

What is `externalTrafficPolicy: Local` and what are the trade-offs?

IntermediateConceptServices, Networking, Ingress & Gateway API
Answer

With Cluster (default) traffic may hop to a Pod on another node and be SNATed, hiding the client IP. With Local, only Pods on the receiving node serve it, so the source IP is preserved and there is no extra hop, but load can be uneven and nodes without Pods fail the LB health check. internalTrafficPolicy: Local does the same for in-cluster traffic.

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Services, Networking, Ingress & Gateway API