Founding prices until 15 December: 30% off Pro, locked for life. See pricing

$ … 0/3 nodes are available: insufficient cpu

Pod stuck in Pending: FailedScheduling and how to fix it

No node fits the Pod, so the scheduler leaves it Pending and says why in the events.

Kubernetes

What it means

Pending means the Pod hasn't been placed on a node yet. The scheduler writes the reason as a FailedScheduling event: "0/3 nodes are available" followed by why each node was rejected.

Causes and fixes

Most likely first. Run the check, and if it matches, apply the fix.

1. Requests bigger than any node has free ("Insufficient cpu" or "Insufficient memory")

Check:

kubectl describe pod <pod> | grep -A3 Events
kubectl describe nodes | grep -A6 'Allocated resources'

Fix: Lower the requests to what the app really needs, free capacity, or add nodes.

2. A nodeSelector or affinity no node matches

Check:

kubectl get pod <pod> -o yaml | grep -A5 -E 'nodeSelector|affinity'

Fix: Correct the label (typos are common) or label the intended nodes.

3. A taint the Pod doesn't tolerate ("had untolerated taint")

Check:

kubectl describe nodes | grep -i taints

Fix: Add a matching toleration, or remove the taint if it's left over.

4. A PersistentVolumeClaim that isn't bound

Check:

kubectl get pvc

Fix: See "PVC stuck in Pending".

Fix it yourself

A live machine in your browser with this problem already on it. The grader checks the result.

Open the lab

No account needed for your first tries.

Related errors