Kubernetes3 min read· 3 practice problems

GPU node present but pod Pending: causes and fixes (nvidia.com/gpu, taints, device plugin)

A GPU node is Ready but the pod stays Pending. Use the FailedScheduling message and allocatable nvidia.com/gpu to tell apart a device plugin that is not ready, taints, nodeSelector labels, GPU limits and the node pool maximum.

On this page
  1. Short answer: the scheduler sees no GPU, or the pod is not allowed on that node
  2. Diagnosis 1: find the reason the GPU nodes gave in Events
  3. Diagnosis 2: how many GPUs does each node advertise?
  4. Cause 1: the device plugin or GPU Operator
  5. Cause 2: the GPU node taint
  6. Cause 3: nodeSelector and affinity labels
  7. Cause 4: limits and the node pool
  8. What not to do
  9. The order to work in
  10. Quick diagnostic checklist

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:

  1. The device plugin is not ready, so the node reports zero GPUs — Insufficient nvidia.com/gpu
  2. The pod does not tolerate the GPU node's taint — untolerated taint
  3. nodeSelector or affinity labels do not match the node — didn't match Pod's node affinity/selector
  4. 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

  1. Find the reason the GPU nodes gave in Events
  2. GPU allocatable is <none> or 0 → check the device plugin and driver pods
  3. Line up taints with tolerations and nodeSelector with labels
  4. Check nvidia.com/gpu under limits and 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/gpu on CPU-only nodes is normal, so match the numbers to your nodes.
  • Check allocatable nvidia.com/gpu per 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/gpu is a whole number under limits and that the node pool can still grow.

Practice with this guide

Reviewed problems about the same failure. Write the cause, recovery, and prevention yourself, then compare with the model answer.

Read next