Skip to content

Operator task guide

How to troubleshoot Kubernetes NVIDIA GPU Operator, device plugin, and MIG scheduling

When GPU pods stay Pending in Kubernetes or fail device initialization, verify three GPU Operator DaemonSets in order: nvidia-driver-daemonset (or host driver), nvidia-container-toolkit-daemonset, and nvidia-device-plugin-daemonset. One failed node-feature-discovery label or driver pod prevents the node from advertising nvidia.com/gpu allocatable capacity.

For Multi-Instance GPU (MIG) clusters, confirm the node MIG strategy (single vs mixed), verify the exact nvidia.com/mig-* resource name in kubectl describe node, and remember that MIG slices do not support cross-slice NVLink P2P or full DCGM profiling counters.

Reviewed . Reference guidance is not a diagnosis of your workload.

Step-by-step method

  1. 1

    Inspect GPU Operator ClusterPolicy and DaemonSet health

    Check every pod in the gpu-operator namespace and confirm kubectl describe node lists nvidia.com/gpu under Allocatable.

    kubectl -n gpu-operator get pods -o wide
    kubectl describe node <gpu-node> | grep -A 8 -E 'Capacity:|Allocatable:|nvidia.com'
  2. 2

    Debug nvidia-device-plugin and nvidia-container-toolkit failures

    If Allocatable shows nvidia.com/gpu: 0 or missing, check device-plugin logs for NVML init failures and verify RuntimeClass / containerd nvidia runtime registration.

    kubectl -n gpu-operator logs -l app=nvidia-device-plugin-daemonset --tail=100
    kubectl -n gpu-operator logs -l app=nvidia-container-toolkit-daemonset --tail=100
  3. 3

    Verify MIG profile labels and resource requests on Kubernetes

    MIG changes node resource names (for example nvidia.com/mig-3g.40gb instead of nvidia.com/gpu under mixed strategy). Ensure pod requests match the active MIG config profile.

    kubectl get nodes -L nvidia.com/mig.config,nvidia.com/mig.strategy,nvidia.com/gpu.product
  4. 4

    Verify pod GPU allocation with a quick CUDA smoke pod

    Schedule a short verification pod requesting nvidia.com/gpu: 1 to verify container runtime injection, /dev/nvidia* mounts, and NVML communication.

Kubernetes GPU Operator troubleshooting matrix

Signals, meanings and actions for how to troubleshoot kubernetes nvidia gpu operator, device plugin, and mig scheduling.
SignalWhat it meansNext action
Pod Pending: 0/N nodes available: Insufficient nvidia.com/gpuNodes lack GPU capacity, device-plugin failed, or MIG changed resource key.Check kubectl describe node Allocatable and device-plugin logs.
nvidia-device-plugin CrashLoopBackOff (could not load NVML)Host or operator driver DaemonSet not ready or mismatched.Inspect nvidia-driver-daemonset logs and /proc/driver/nvidia/version.
Pod fails with CreateContainerError: nvidia-container-cli failedContainer toolkit CDI/runtime hook broken on node.Check toolkit DaemonSet logs and containerd config.toml.
MIG pod runs but fails multi-GPU NCCL / P2PMIG instances cannot use direct P2P across slices on the same GPU.Disable MIG for multi-GPU NCCL training or use full GPUs.

Evidence checklist

  • kubectl -n gpu-operator get pods -o wide
  • kubectl describe node <node> Allocatable and Labels
  • nvidia-device-plugin and nvidia-container-toolkit DaemonSet logs
  • Pod spec resources.limits and runtimeClassName
  • Host nvidia-smi mig -lgi output if MIG is enabled

Common mistakes

Requesting nvidia.com/gpu when MIG mixed strategy exposes nvidia.com/mig-*

Mixed MIG nodes do not advertise whole nvidia.com/gpu slots for partitioned cards.

Running distributed NCCL training across MIG slices on one GPU

MIG isolates memory/compute and restricts cross-slice peer access.

Missing RuntimeClass nvidia on clusters where containerd is not default-nvidia

Always verify whether your cluster requires runtimeClassName: nvidia in pod specs.

Frequently asked questions

Why does Kubernetes show Insufficient nvidia.com/gpu when nodes have GPUs?

Usually either the nvidia-device-plugin pod failed on those nodes, MIG partitioning switched the node resource name to nvidia.com/mig-*, or taints on GPU nodes are missing matching pod tolerations.

What is the difference between NVIDIA GPU Operator and standalone nvidia-device-plugin?

The standalone device plugin only advertises GPUs to kubelet (assuming drivers and container toolkit are pre-installed on the host OS). The GPU Operator manages the full lifecycle: drivers, container toolkit, device plugin, MIG manager, node feature discovery, and DCGM Exporter.

Can MIG GPUs run multi-GPU distributed training with NCCL?

Generally no: MIG is designed for isolated single-instance inference or multi-tenant slicing and restricts peer-to-peer NVLink/PCIe communication between slices.

How do I check which GPU Operator component is failing?

Run kubectl -n gpu-operator get pods and inspect logs on any pod not in Running/Completed state, starting with driver-daemonset, container-toolkit-daemonset, and device-plugin-daemonset.

Live diagnosis, no signup

Upload your GPU log. Find what happened first.

Get the likely cause, supporting evidence, and next safe steps with the same cloud reasoning used by paid plans. A crash the engine recognizes is answered in seconds, then checked by an independent AI review that updates this page when it finishes. A crash it does not recognize waits for the AI's own answer, which can take a few minutes. No account, card, or installation. Logs are masked at Denpex API ingress and are not saved to account history.

Before uploading, review cloud data handling and local options.

training_logs.txt
No log to hand? Try one:

Upload your log file. Large files are processed in your browser. Only selected evidence is submitted when you run diagnosis.

3 free cloud diagnoses per day

Try Denpex for 30 days. FREE.

No credit card. No automatic subscription. See whether Denpex helps with an incident you already understand.

Start your free 30-day Team evaluation

Up to 50 diagnoses a day for 30 days. Verify your work email to activate an eligible company evaluation, then replay a resolved incident and compare the evidence and next steps with your team's confirmed cause.

Use your company email, for example alex@yourcompany.com.

Who qualifies?

Company email domains activate the free 30-day Team evaluation (up to 50 diagnoses a day) after an email and domain check, whatever mail provider you use. If we cannot verify your domain automatically, support reviews it: write to support@denpex.com. Free local diagnosis in the editor extension needs no account.

Using a personal email (Gmail, Outlook, Naver, QQ) or solo cluster? Create a free $0 account (no work email required) to save 7-day history and unlock AI fallback, or send a cluster crash log for a live walkthrough.

Apply the method to your incident

Use the three free diagnoses to review your error and relevant evidence. Keep reference guidance separate from the cause and recovery status of your own workload.

Diagnose your incident