How would you design egress with stable IPs for Kubernetes workloads calling partner APIs?
AdvancedProductionKubernetes & Service Networking in Production
Answer
Route traffic from specific pods or namespaces through dedicated egress nodes in a subnet with a NAT gateway or EIPs, using Cilium Egress Gateway, Calico egress gateway, or a separate node group with taints and a dedicated route table. Share the EIP list with partners and keep spare EIPs to rotate.
Without this, pods egress from whichever node or NAT they happen to use, and IP allow-lists break during scaling.
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