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 →
- Confirm with
iptables-save | wc -land kube-proxy sync duration metrics - Switch to IPVS or eBPF replacement
- Reduce services through consolidation with Ingress
- Use EndpointSlices (default) and avoid churn from flapping readiness
- Tune
conntracksizes
Why → The cost is per rule, and Services times endpoints grows fast.
Interview tip → Say endpoint churn is as important as raw counts.
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