Interview Prep/Kubernetes/Resources, autoscaling and scheduling

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 →

  1. kubectl describe pod to read the scheduling message
  2. kubectl describe nodes | grep -A8 "Allocated resources" to see requested versus allocatable
  3. Compare to actual use with kubectl top nodes
  4. Right-size inflated requests, or add nodes (Cluster Autoscaler or Karpenter)
  5. 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.

All Kubernetes questions Roadmap: Kubernetes core

More on Resources, autoscaling and scheduling