Interview Prep/Real-World Interview/Scaling and performance

Nodes in the cluster show high CPU but pods report low usage. How do you explain it?

AdvancedScenarioScaling and performance
Answer

Situation read → Something outside your app containers is consuming CPU: system daemons, sidecars, the kubelet, or the hypervisor.

What I'd do →

  1. On the node, see what is actually busy:
top -o %CPU
# check %st (steal) and %sy (system)
  1. High steal (%st): noisy neighbours on burstable instances or exhausted T-series CPU credits. Move to non-burstable types.
  2. High system time: heavy networking (lots of iptables rules with kube-proxy in iptables mode), conntrack churn, or disk I/O.
  3. Daemonsets and sidecars: log shippers, security agents and service-mesh proxies can be significant. Check kubectl top pod -A --containers on that node.
  4. Reserve resources for system components with kubelet systemReserved and kubeReserved so pods can't starve them.

Why → Kubernetes only accounts for containers; node-level overhead must be measured separately.

Interview tip → T3 CPU credits are a real cause of "random" slowness; mention them.

All Real-World Interview questions Roadmap: Interview readiness

More on Scaling and performance