Design pod egress with centralized inspection and per-team allow lists.
AdvancedScenarioKubernetes Networking
Answer
Situation read → You need identity-aware egress per namespace.
What I'd do →
- Use Cilium egress gateway or Istio egress gateway with per-namespace policies
- Enforce FQDN policies using CiliumNetworkPolicy
toFQDNs - Route egress through a central NAT and firewall with logging
- Give each team a policy through GitOps pull requests
- Alert on denied flows with Hubble
Why → Pod IPs are ephemeral, so egress rules must follow labels and names, not addresses.
Interview tip → Say audit logs of denied flows drive onboarding of new destinations.
More on Kubernetes Networking
Explain the Kubernetes networking model in one minute.BeginnerClusterIP, NodePort and LoadBalancer: when do you use each?BeginnerHow does a pod find another service by name?BeginnerService versus Ingress: what is the difference?BeginnerWhat does a CNI plugin do and which ones do you know?BeginnerHow do you reach a pod from your laptop for debugging without exposing it?Beginner