What it means
A taint keeps Pods off a node unless they tolerate it. Control-plane nodes are tainted by default, and teams taint nodes reserved for special workloads.
Causes and fixes
Most likely first. Run the check, and if it matches, apply the fix.
1. The Pod should run there but lacks the toleration
Check:
kubectl describe nodes | grep -i taints
Fix: Add a toleration with the same key, value and effect to the Pod template.
2. A taint left over from maintenance (node.kubernetes.io/unschedulable, a custom key)
Check:
kubectl get nodes -o custom-columns=NAME:.metadata.name,TAINTS:.spec.taints
Fix: Remove it with kubectl taint nodes <node> <key>- (or uncordon).
Fix it yourself
A live machine in your browser with this problem already on it. The grader checks the result.
Open the labNo account needed for your first tries.
Related errors
- 0/3 nodes are available: insufficient cpu
No node fits the Pod, so the scheduler leaves it Pending and says why in the events.