Short answer: the scheduler sees no GPU, or the pod is not allowed on that node
Even when the GPU node shows Ready in kubectl get nodes, the scheduler decides only from the node's allocatable nvidia.com/gpu and its taints and labels. The cause is usually one of four:
- The device plugin is not ready, so the node reports zero GPUs —
Insufficient nvidia.com/gpu - The pod does not tolerate the GPU node's taint —
untolerated taint - nodeSelector or affinity labels do not match the node —
didn't match Pod's node affinity/selector - A resource spec mistake or the node pool's maximum size — no new node appears
Diagnosis 1: find the reason the GPU nodes gave in Events
kubectl describe pod trainer-6c9d4-p7x2z -n ml | grep -A6 Events
Warning FailedScheduling 45s default-scheduler 0/5 nodes are available: 2 node(s) had untolerated taint {nvidia.com/gpu: present}, 3 Insufficient nvidia.com/gpu.
Match the numbers to your nodes. The three CPU-only nodes reporting Insufficient nvidia.com/gpu is normal; the real reason is what the two GPU nodes said (here, the taint).
Diagnosis 2: how many GPUs does each node advertise?
kubectl get nodes "-o=custom-columns=NAME:.metadata.name,GPU:.status.allocatable.nvidia\.com/gpu"
NAME GPU
cpu-node-1 <none>
gpu-node-1 4
gpu-node-2 <none>
A GPU node showing <none> or 0 is cause 1. If it shows a number and is still short, check Allocated resources in kubectl describe node gpu-node-1 to see whether other pods already hold every GPU.
Cause 1: the device plugin or GPU Operator
The driver and the NVIDIA device plugin must register nvidia.com/gpu with the kubelet before it shows up as allocatable. Check that the plugin pod exists on that node and is Running.
kubectl get pods -A -o wide | grep -E "nvidia|gpu-operator"
If the driver pod is not ready, the device plugin does not come up either. A taint you added to the node may also be untolerated by the device plugin DaemonSet, so its pod never lands there.
Cause 2: the GPU node taint
GPU node pools are usually tainted to keep ordinary pods out (GKE adds nvidia.com/gpu=present:NoSchedule automatically). The workload needs a matching toleration.
kubectl describe node gpu-node-1 | grep Taints
# pod spec
tolerations:
- key: nvidia.com/gpu
operator: Exists
effect: NoSchedule
Cause 3: nodeSelector and affinity labels
A new node pool or GPU model often changes label values. Compare the labels the pod asks for with the node's labels.
kubectl get pod trainer-6c9d4-p7x2z -n ml -o jsonpath='{.spec.nodeSelector}'
kubectl get node gpu-node-1 --show-labels
Cause 4: limits and the node pool
GPUs go in limits. With only limits set, requests default to the same value; if you also set requests, they must equal the limits. Set them in requests alone and the pod is rejected at creation. Only whole numbers work (no 0.5), and GPUs are never overcommitted.
resources:
limits:
nvidia.com/gpu: 1
If the Cluster Autoscaler does not add a node, look for NotTriggerScaleUp in Events (for example max node group size reached) and check the GPU node pool's maximum size and your cloud GPU quota.
What not to do
- Removing the GPU node taint — ordinary pods fill the expensive GPU nodes and push GPU pods out again.
- Bypassing the scheduler with
nodeName— it only skips the rules; if no GPU is free, the kubelet rejects the pod and it fails.
The order to work in
- Find the reason the GPU nodes gave in Events
- GPU allocatable is
<none>or0→ check the device plugin and driver pods - Line up taints with tolerations and nodeSelector with labels
- Check
nvidia.com/gpuunderlimitsand the node pool's maximum size
To practise reading scheduling constraints, try New workloads not scheduling.
Quick diagnostic checklist
- Find the reason the GPU nodes gave in the FailedScheduling event.
Insufficient nvidia.com/gpuon CPU-only nodes is normal, so match the numbers to your nodes.- Check allocatable
nvidia.com/gpuper node with custom-columns. - If a GPU node shows
<none>or 0, check its driver and device plugin pods. - Confirm the device plugin DaemonSet tolerates the node's taints.
- Match the GPU node's Taints with the workload's tolerations.
- Compare the pod's nodeSelector and affinity with the GPU node's labels.
- Check that
nvidia.com/gpuis a whole number under limits and that the node pool can still grow.