Interview Prep/Networking/Kubernetes & Service Networking in Production

How do you restrict egress from pods to specific external services?

IntermediateProductionKubernetes & Service Networking in Production
Answer

NetworkPolicy with ipBlock for fixed CIDRs, FQDN-aware policies (Cilium toFQDNs, Calico DNS policy), an egress gateway giving a stable source IP, or a proxy or Network Firewall with domain allow-lists. Standard Kubernetes policy cannot filter by hostname.

Stable egress IPs matter when partners allow-list you: use NAT gateway EIPs, or Cilium egress gateway on dedicated nodes.

All Networking questions Roadmap: Networking for DevOps

More on Kubernetes & Service Networking in Production