Kubernetes Errors
devopskubernetesTroubleshootingBeginner
Kubernetes Error: Pod Stuck in Pending State
Fix Kubernetes Pods stuck in the Pending state due to insufficient CPU/memory capacity, node taints, unbound PVCs, or affinity rules.
Verified: 2026-10-01
Tested on:kubernetes 1.31
Platforms:
all
#kubernetes#pod-pending#scheduler#capacity#errors
Symptoms
kubectl get podsshows pod statusPendingindefinitely.- The
NODEcolumn inkubectl get pods -o wideis empty (<none>). - Container never starts, restarts count is 0.
Why It Happens
A Pod remains in Pending when the kube-scheduler cannot find any Worker Node in the cluster that satisfies the Pod's constraints and resource requests.
Common causes:
- Insufficient Cluster Resources: The requested CPU or RAM (
resources.requests) exceeds the available capacity on any single node. - Unbound PersistentVolumeClaim (PVC): The Pod requests a PVC that has not yet been bound to physical storage.
- Node Selector or Affinity Mismatch: Pod specifies a
nodeSelector(e.g.disktype: ssd) that no online node possesses. - Node Taints without Tolerations: Worker nodes are tainted (e.g. control-plane nodes or maintenance drain) and the Pod lacks corresponding tolerations.
How to Diagnose
Read the **Events** section at the bottom:
```text
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedScheduling 45s default-scheduler 0/3 nodes are available: 3 Insufficient cpu.
```Solutions & Fixes
1. Reduce Unrealistic resources.requests
Developers often overestimate required baseline resources (e.g. requesting 4 full CPU cores for a light microservice):
spec:
containers:
- name: web
resources:
requests:
# Lower baseline request so scheduler can fit the pod
cpu: "100m"
memory: "128Mi"
limits:
cpu: "1000m"
memory: "512Mi"2. Verify Storage PVC Status
If the event says pod has unbound immediate PersistentVolumeClaims:
kubectl get pvcCheck if the PVC is in Pending status and inspect storage class availability.
3. Add Cluster Nodes or Enable Cluster Autoscaler
If all nodes are truly at 100% compute capacity, scale up your node pool in your cloud provider or cluster autoscaler.