`0/4 nodes are available: 1 node(s) had untolerated taint {node-role.kubernetes.io/control-plane: }, 3 node(s) had untolerated taint {dedicated: gpu}`.
BeginnerTroubleshootingScheduling and Pending Pods
Answer
Likely causes → Every worker is tainted (a GPU pool with dedicated=gpu:NoSchedule) and the Pod has no matching toleration. In a fresh kubeadm cluster with one node, the control-plane taint blocks everything.
Diagnose →
kubectl get nodes -o custom-columns=NAME:.metadata.name,TAINTS:.spec.taints
kubectl get pod web-x -o jsonpath='{.spec.tolerations}'
Fix → Add a general-purpose node pool without taints, or add the toleration if the Pod really belongs there:
tolerations:
- {key: dedicated, operator: Equal, value: gpu, effect: NoSchedule}
nodeSelector:
dedicated: gpu
A toleration only allows; pair it with a nodeSelector or affinity to actually target the pool. For a lab single-node cluster: kubectl taint nodes --all node-role.kubernetes.io/control-plane-.
Prevent → Always keep an untainted default pool; document taints per pool.
More on Scheduling and Pending Pods
Pods are Pending with `0/5 nodes are available: 5 Insufficient cpu. preemption: 0/5 nodes are available: 5 No preemption victims found for incoming pod.`Beginner`kubectl top nodes` shows nodes at 20% CPU, yet new Pods fail with `Insufficient cpu`. Explain it to a developer.BeginnerA StatefulSet Pod is Pending with `pod has unbound immediate PersistentVolumeClaims`.Beginner`0/3 nodes are available: 3 node(s) didn't match Pod's node affinity/selector.`BeginnerA 6-replica Deployment has 3 Pods Running and 3 Pending: `0/3 nodes are available: 3 node(s) didn't match pod anti-affinity rules`.IntermediatePods are Pending with `node(s) didn't match pod topology spread constraints` even though one zone has lots of free capacity.Intermediate