In a cluster with 6,000 Services, endpoint changes take minutes to apply; during rollouts traffic hits pods that are already gone, and kube-proxy CPU spikes on every node.
AdvancedTroubleshootingKubernetes cluster-level
Answer
Likely causes → kube-proxy in iptables mode rewrites very large rule sets on each change, and rule evaluation is linear. At thousands of Services and tens of thousands of endpoints, each sync takes seconds to minutes, so the dataplane lags behind the API.
Diagnose →
kubectl -n kube-system get cm kube-proxy -o yaml | grep mode
kubectl debug node/<node> -it --image=nicolaka/netshoot -- sh -c 'iptables-save | wc -l'
Watch kubeproxy_sync_proxy_rules_duration_seconds and kubeproxy_network_programming_duration_seconds.
Fix → Move to a dataplane that scales: kube-proxy nftables mode (GA in 1.33) or IPVS, or replace kube-proxy with Cilium eBPF. Tune iptables.minSyncPeriod meanwhile to batch updates.
Prevent → Track Service and endpoint counts as a capacity metric, clean up unused Services, and make the dataplane decision before the cluster hits that scale.
More on Kubernetes cluster-level
Every `kubectl` command fails with "The connection to the server 10.0.1.10:6443 was refused - did you specify the right host or port?"BeginnerA new deployment's pods stay Pending with "0/5 nodes are available: 5 Insufficient cpu. preemption: 0/5 nodes are available: 5 No preemption victims found for incoming pod."BeginnerPods are Pending, but Cluster Autoscaler won't add nodes; the pod events say "pod didn't trigger scale-up: 2 node(s) didn't match Pod's node affinity/selector, 1 max node group size reached".IntermediateA node goes NotReady and kubelet logs "PLEG is not healthy: pleg was last seen active 3m10s ago; threshold is 3m0s".IntermediateAfter a node was terminated, its pods have shown `Terminating` for two hours and their replacements aren't being created.IntermediateYou deleted a namespace an hour ago and it's still `Terminating`.Intermediate