Pods are Pending with `0/6 nodes are available: 6 Insufficient cpu`. What do you do?
IntermediateScenarioResources, autoscaling and scheduling
Answer
Situation read → A new Deployment cannot schedule though nodes look idle in the dashboard.
What I'd do →
kubectl describe podto read the scheduling messagekubectl describe nodes | grep -A8 "Allocated resources"to see requested versus allocatable- Compare to actual use with
kubectl top nodes - Right-size inflated requests, or add nodes (Cluster Autoscaler or Karpenter)
- Check that quotas and LimitRanges are not injecting large defaults
Why → The scheduler works on requests, not live usage, so a cluster can look idle yet be full.
Interview tip → This distinction is asked constantly.
More on Resources, autoscaling and scheduling
How do you choose requests and limits for a new service?BeginnerExplain QoS classes and which pods get evicted first.IntermediateCPU limits cause latency spikes though average usage is low. Why and what is the fix?IntermediateHow do you configure an HPA on CPU?BeginnerHPA shows `<unknown>/70%` for CPU. What do you do?IntermediateYou need to scale on queue length or requests per second, not CPU. How?Intermediate