A 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."
BeginnerTroubleshootingKubernetes cluster-level
Answer
Likely causes → The scheduler places pods by requests, not real usage. The pod asks for more CPU than any node has left unrequested, or more than a whole node offers (a 6-CPU request on 4-vCPU nodes), and there's no autoscaler or it's at its maximum.
Diagnose →
kubectl describe pod web-7c9-abcde | tail -5
kubectl describe nodes | grep -A6 'Allocated resources'
kubectl get deploy web -o jsonpath='{.spec.template.spec.containers[*].resources}'
Fix → Lower the request to what the app really uses, add nodes (or raise the autoscaler max), or use a larger instance type for that workload.
Prevent → Set requests from measured usage (VPA recommendations), run Cluster Autoscaler or Karpenter, and alert on pods Pending longer than five minutes.
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?"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`.IntermediateAPI writes start failing cluster-wide with "etcdserver: mvcc: database space exceeded". Deploys, scaling and even leader election stop working.Advanced