Interview Prep/Networking/Kubernetes Networking

A cluster with 10,000 Services has slow network programming and high CPU in kube-proxy. What do you do?

AdvancedScenarioKubernetes Networking
Answer

Situation read → iptables mode does not scale linearly.

What I'd do →

  1. Confirm with iptables-save | wc -l and kube-proxy sync duration metrics
  2. Switch to IPVS or eBPF replacement
  3. Reduce services through consolidation with Ingress
  4. Use EndpointSlices (default) and avoid churn from flapping readiness
  5. Tune conntrack sizes

Why → The cost is per rule, and Services times endpoints grows fast.

Interview tip → Say endpoint churn is as important as raw counts.

All Networking questions Roadmap: Networking for DevOps

More on Kubernetes Networking