NVIDIA GPU Operator
Gets Kubernetes GPU nodes ready for LLM serving: the operator deploys the driver, container toolkit, device plugin,
GPU Feature Discovery and DCGM exporter as DaemonSets so pods can request nvidia.com/gpu. Verified against GPU
Operator v26.7.1 (2026-10-11).
Scope: the operator and its operands on a Kubernetes cluster, plus the settings that matter for LLM workloads
(sharing, MIG, metrics, upgrades). The workloads (vllm, ray-serve), GPU metrics queries (dcgm-exporter),
routing (gateway-api-inference-extension) and pod autoscaling (keda) are sibling skills.
Work through the steps in order. Load a reference only when a step names it.
Discover first
Read-only. Never print secrets.
kubectl get nodes -o wide
kubectl get nodes -o custom-columns=NAME:.metadata.name,GPU:.status.allocatable.nvidia\\.com/gpu,PRODUCT:.metadata.labels.nvidia\\.com/gpu\\.product
kubectl get pods -n gpu-operator 2>/dev/null; kubectl get clusterpolicy 2>/dev/null
helm list -A | grep -i gpu-operator
kubectl get nodes -o json | jq '.items[].metadata.labels | keys | any(startswith("feature.node.kubernetes.io"))' # is NFD already running?
kubectl get runtimeclass; kubectl get ns gpu-operator --show-labels 2>/dev/null
# On a node (SSH): driver, runtime
nvidia-smi --query-gpu=name,driver_version,memory.total --format=csv 2>/dev/null
containerd --version 2>/dev/null; crio --version 2>/dev/null; ls /etc/nvidia-container-runtime 2>/dev/null
lsmod | grep -E '^(nvidia|nouveau)' ; uname -r; cat /etc/os-release | head -3
Decision flow
- Already have working GPU scheduling? (
nvidia.com/gpu allocatable on nodes, pods run nvidia-smi.) Do not
install the operator; use it only for features you need. If another stack manages the driver (cloud image,
DGX OS, Talos, Bottlerocket), install with driver.enabled=false (and toolkit.enabled=false where the
toolkit is preinstalled): references/install.md.
- Check platform fit (supported GPUs, OS, Kubernetes, runtimes):
references/install.md.
- Pick driver ownership: operator-managed driver container (default, all GPU nodes must share an OS version
with ClusterPolicy; per-pool versions need the
NVIDIADriver CRD), or host-installed driver.
- Install pinned to a chart version, in namespace
gpu-operator labelled for Pod Security privileged;
disable NFD if the cluster already runs it.
- Verify: all pods Running or Completed, ClusterPolicy
ready, nvidia.com/gpu allocatable, a CUDA test
pod; then a vLLM pod (references/install.md).
- Share or partition GPUs? Time-slicing (no isolation) or MIG (hardware isolation):
references/sharing-mig.md.
- Metrics: DCGM exporter is on by default; scrape and use it:
references/observability.md.
- Upgrade (CRDs first, driver rollout policy):
references/upgrading.md. Uninstall: same file.
- Broken:
references/troubleshooting.md.
Quick start
# After approval. Verified for v26.7.1 (OCI chart; verify the signature with cosign first, see references/install.md).
kubectl create ns gpu-operator
kubectl label --overwrite ns gpu-operator pod-security.kubernetes.io/enforce=privileged
helm install --wait gpu-operator -n gpu-operator \
oci://nvcr.io/nvidia/cloud-native-charts/gpu-operator --version=v26.7.1
kubectl get pods -n gpu-operator
kubectl get clusterpolicy
kubectl get nodes -o json | jq '.items[] | select(.status.allocatable["nvidia.com/gpu"]!=null) | {name:.metadata.name,gpus:.status.allocatable["nvidia.com/gpu"]}'
kubectl apply -f templates/cuda-vectoradd.yaml && kubectl logs pod/cuda-vectoradd # expects "Test PASSED"
Rules
- Ask before changing the system. The operator installs kernel drivers, edits container runtime config and
restarts runtimes on GPU nodes. Say which nodes, and the undo path (
references/upgrading.md, uninstall).
- Secrets never touch output. NGC and registry pull secrets, vGPU license tokens and cosign keys live in
Secrets or files with mode
0600.
- Pin the chart version (
--version=v26.7.1); never install unpinned. Upgrades are supported only within a
major release or to the next major.
- CRDs are not upgraded by Helm automatically. Follow
references/upgrading.md.
- Same OS on GPU nodes when the operator manages the driver through ClusterPolicy; mixed OS needs
NVIDIADriver.
- One GPU manager per node. Do not run a host-installed device plugin or a second operator alongside it.
- Namespace must be
privileged under Pod Security Admission.
- Time-slicing has no memory or fault isolation. Do not use it to run untrusted tenants; use MIG.
Facts that surprise people (v26.7.1)
- A default install deploys the driver, container toolkit, device plugin, DCGM exporter and MIG Manager on every GPU
node, plus NFD and GPU Feature Discovery.
driver.enabled=false for preinstalled drivers.
- CDI is on by default (
cdi.enabled=true): GPUs are injected through native CDI in containerd or CRI-O and the
nvidia runtime class is no longer the default handler. The NRI plugin (cdi.nriPluginEnabled) is not GA.
- Operand pods start only after the driver daemonset and toolkit are healthy: "stuck in Init" almost always means
the driver pod.
- Time-slicing requests do not scale: asking for 2 replicas does not give 2x compute. Set
failRequestsGreaterThanOne: true to make that explicit.
- The operator does not watch the time-slicing ConfigMap; restart the device plugin after editing it.
- DCGM exporter cannot attribute metrics to containers when time-slicing is enabled.
- v26.7.1 added soft and hard per-GPU CUDA memory limits through
NVIDIA_GPU_MEMORY_REQUEST and
NVIDIA_GPU_MEMORY_LIMIT (MiB; needs an R615 or later driver).
- Release support status as read: 26.7.x supported, 26.3.x deprecated (patches only), 25.10.x and lower end of support.
- The driver default for v26.7.1 is 595.91.07 (recommended), with 580.173.02, 610.57.04 and 615.71.09 also listed.
Workflows
Prepare a cluster for LLM serving
Share one GPU between small models
Upgrade the operator or drivers
Debug a failure
Reference index
references/install.md: platform fit, install variants (OCI, repo, preinstalled driver/toolkit), values, verification.
references/sharing-mig.md: time-slicing ConfigMaps, MIG strategies and profiles, node labels.
references/observability.md: DCGM exporter metrics, ServiceMonitor, LLM-relevant queries, nvidia.com/gpu capacity.
references/upgrading.md: operator and driver upgrades, rollback, uninstall.
references/troubleshooting.md: symptom to cause to fix.
references/combos/vllm-on-gpu-operator.md: scheduling vLLM on operator-managed nodes.
references/combos/keda-dcgm.md: DCGM metrics as KEDA triggers.
templates/: cuda-vectoradd.yaml, time-slicing-config.yaml, values-llm.yaml, nvidiadriver.yaml.
Companion skills
vllm: the workload. Install: npx skills add ScaleDockHQ/llm-skills --skill vllm.
ray-serve: Ray Serve LLM and KubeRay on GPU nodes. Install: npx skills add ScaleDockHQ/llm-skills --skill ray-serve.
dcgm-exporter: GPU metrics in depth. Install: npx skills add ScaleDockHQ/llm-skills --skill dcgm-exporter.
keda: scale model pods on queue and GPU metrics. Install: npx skills add ScaleDockHQ/llm-skills --skill keda.
gateway-api-inference-extension: route to the pods. Install: npx skills add ScaleDockHQ/llm-skills --skill gateway-api-inference-extension.
choosing-hardware: pick GPUs and sizing. Install: npx skills add ScaleDockHQ/llm-skills --skill choosing-hardware.
nvidia-dgx-spark: single-node DGX Spark setup (not Kubernetes). Install: npx skills add ScaleDockHQ/llm-skills --skill nvidia-dgx-spark.
1---2name: nvidia-gpu-operator3description: Install and run the NVIDIA GPU Operator (Helm, ClusterPolicy, NVIDIADriver) so Kubernetes nodes expose nvidia.com/gpu for LLM pods, covering the driver, container toolkit, device plugin, DCGM exporter, MIG Manager, GPU Feature Discovery, time-slicing, CDI, driver upgrades, uninstall. Use for GPU nodes not schedulable, pods stuck in Init, no runtime for nvidia, missing GPUs, Xid errors, sharing a GPU between vLLM pods. Not for DCGM metrics only (dcgm-exporter), the workloads (vllm, ray-serve), or autoscaling (keda).4license: MIT5compatibility: Kubernetes with containerd 2.x or CRI-O on NVIDIA data center GPUs (x86 and ARM), kubectl, helm, bash, jq. Installing it modifies nodes (drivers, runtime config) and cluster CRDs, so it needs the user's explicit approval.6metadata:7 source: https://skillmd.com/skills/scaledockhq/nvidia-gpu-operator8 author: ScaleDockHQ9 version: "0.1.0"10---1112# NVIDIA GPU Operator1314Gets Kubernetes GPU nodes ready for LLM serving: the operator deploys the driver, container toolkit, device plugin,15GPU Feature Discovery and DCGM exporter as DaemonSets so pods can request `nvidia.com/gpu`. Verified against GPU16Operator v26.7.1 (2026-10-11).1718**Scope:** the operator and its operands on a Kubernetes cluster, plus the settings that matter for LLM workloads19(sharing, MIG, metrics, upgrades). The workloads (`vllm`, `ray-serve`), GPU metrics queries (`dcgm-exporter`),20routing (`gateway-api-inference-extension`) and pod autoscaling (`keda`) are sibling skills.2122Work through the steps in order. Load a reference only when a step names it.2324## Discover first2526Read-only. Never print secrets.2728```bash29kubectl get nodes -o wide30kubectl get nodes -o custom-columns=NAME:.metadata.name,GPU:.status.allocatable.nvidia\\.com/gpu,PRODUCT:.metadata.labels.nvidia\\.com/gpu\\.product31kubectl get pods -n gpu-operator 2>/dev/null; kubectl get clusterpolicy 2>/dev/null32helm list -A | grep -i gpu-operator33kubectl get nodes -o json | jq '.items[].metadata.labels | keys | any(startswith("feature.node.kubernetes.io"))' # is NFD already running?34kubectl get runtimeclass; kubectl get ns gpu-operator --show-labels 2>/dev/null35# On a node (SSH): driver, runtime36nvidia-smi --query-gpu=name,driver_version,memory.total --format=csv 2>/dev/null37containerd --version 2>/dev/null; crio --version 2>/dev/null; ls /etc/nvidia-container-runtime 2>/dev/null38lsmod | grep -E '^(nvidia|nouveau)' ; uname -r; cat /etc/os-release | head -339```4041## Decision flow42431. **Already have working GPU scheduling?** (`nvidia.com/gpu` allocatable on nodes, pods run `nvidia-smi`.) Do not44 install the operator; use it only for features you need. If another stack manages the driver (cloud image,45 DGX OS, Talos, Bottlerocket), install with `driver.enabled=false` (and `toolkit.enabled=false` where the46 toolkit is preinstalled): `references/install.md`.472. **Check platform fit** (supported GPUs, OS, Kubernetes, runtimes): `references/install.md`.483. **Pick driver ownership**: operator-managed driver container (default, all GPU nodes must share an OS version49 with ClusterPolicy; per-pool versions need the `NVIDIADriver` CRD), or host-installed driver.504. **Install** pinned to a chart version, in namespace `gpu-operator` labelled for Pod Security `privileged`;51 disable NFD if the cluster already runs it.525. **Verify**: all pods Running or Completed, ClusterPolicy `ready`, `nvidia.com/gpu` allocatable, a CUDA test53 pod; then a vLLM pod (`references/install.md`).546. **Share or partition GPUs?** Time-slicing (no isolation) or MIG (hardware isolation):55 `references/sharing-mig.md`.567. **Metrics**: DCGM exporter is on by default; scrape and use it: `references/observability.md`.578. **Upgrade** (CRDs first, driver rollout policy): `references/upgrading.md`. **Uninstall**: same file.589. **Broken**: `references/troubleshooting.md`.5960## Quick start6162```bash63# After approval. Verified for v26.7.1 (OCI chart; verify the signature with cosign first, see references/install.md).64kubectl create ns gpu-operator65kubectl label --overwrite ns gpu-operator pod-security.kubernetes.io/enforce=privileged66helm install --wait gpu-operator -n gpu-operator \67 oci://nvcr.io/nvidia/cloud-native-charts/gpu-operator --version=v26.7.168kubectl get pods -n gpu-operator69kubectl get clusterpolicy70kubectl get nodes -o json | jq '.items[] | select(.status.allocatable["nvidia.com/gpu"]!=null) | {name:.metadata.name,gpus:.status.allocatable["nvidia.com/gpu"]}'71kubectl apply -f templates/cuda-vectoradd.yaml && kubectl logs pod/cuda-vectoradd # expects "Test PASSED"72```7374## Rules7576- **Ask before changing the system.** The operator installs kernel drivers, edits container runtime config and77 restarts runtimes on GPU nodes. Say which nodes, and the undo path (`references/upgrading.md`, uninstall).78- **Secrets never touch output.** NGC and registry pull secrets, vGPU license tokens and cosign keys live in79 Secrets or files with mode `0600`.80- **Pin the chart version** (`--version=v26.7.1`); never install unpinned. Upgrades are supported only within a81 major release or to the next major.82- **CRDs are not upgraded by Helm automatically.** Follow `references/upgrading.md`.83- **Same OS on GPU nodes** when the operator manages the driver through ClusterPolicy; mixed OS needs `NVIDIADriver`.84- **One GPU manager per node.** Do not run a host-installed device plugin or a second operator alongside it.85- **Namespace must be `privileged`** under Pod Security Admission.86- **Time-slicing has no memory or fault isolation.** Do not use it to run untrusted tenants; use MIG.8788## Facts that surprise people (v26.7.1)8990- A default install deploys the driver, container toolkit, device plugin, DCGM exporter and MIG Manager on every GPU91 node, plus NFD and GPU Feature Discovery. `driver.enabled=false` for preinstalled drivers.92- CDI is on by default (`cdi.enabled=true`): GPUs are injected through native CDI in containerd or CRI-O and the93 `nvidia` runtime class is no longer the default handler. The NRI plugin (`cdi.nriPluginEnabled`) is not GA.94- Operand pods start only after the driver daemonset and toolkit are healthy: "stuck in Init" almost always means95 the driver pod.96- Time-slicing requests do not scale: asking for 2 replicas does not give 2x compute. Set97 `failRequestsGreaterThanOne: true` to make that explicit.98- The operator does not watch the time-slicing ConfigMap; restart the device plugin after editing it.99- DCGM exporter cannot attribute metrics to containers when time-slicing is enabled.100- v26.7.1 added soft and hard per-GPU CUDA memory limits through `NVIDIA_GPU_MEMORY_REQUEST` and101 `NVIDIA_GPU_MEMORY_LIMIT` (MiB; needs an R615 or later driver).102- Release support status as read: 26.7.x supported, 26.3.x deprecated (patches only), 25.10.x and lower end of support.103- The driver default for v26.7.1 is 595.91.07 (recommended), with 580.173.02, 610.57.04 and 615.71.09 also listed.104105## Workflows106107### Prepare a cluster for LLM serving108109- [ ] Discovery; decide driver ownership; check node OS and runtime (`references/install.md`).110- [ ] Install the chart pinned, with the options for your platform.111- [ ] Verify pods, ClusterPolicy, allocatable GPUs, a CUDA sample.112- [ ] Deploy a model server with `resources.limits."nvidia.com/gpu"` (skills `vllm`, `ray-serve`).113- [ ] Scrape DCGM metrics (`references/observability.md`).114115### Share one GPU between small models116117- [ ] Choose time-slicing (replicas) or MIG (profiles): `references/sharing-mig.md`.118- [ ] Apply the ConfigMap or label, restart the plugin, check the new allocatable count and labels.119120### Upgrade the operator or drivers121122- [ ] `references/upgrading.md`: CRDs, `helm upgrade`, driver rollout policy (`maxUnavailable`, drain).123124### Debug a failure125126- [ ] `kubectl get pods -n gpu-operator`, driver pod logs, `dmesg | grep -i -E 'NVRM|Xid'`, then127 `references/troubleshooting.md`. For a bug report run upstream's `hack/must-gather.sh`.128129## Reference index130131- `references/install.md`: platform fit, install variants (OCI, repo, preinstalled driver/toolkit), values, verification.132- `references/sharing-mig.md`: time-slicing ConfigMaps, MIG strategies and profiles, node labels.133- `references/observability.md`: DCGM exporter metrics, ServiceMonitor, LLM-relevant queries, `nvidia.com/gpu` capacity.134- `references/upgrading.md`: operator and driver upgrades, rollback, uninstall.135- `references/troubleshooting.md`: symptom to cause to fix.136- `references/combos/vllm-on-gpu-operator.md`: scheduling vLLM on operator-managed nodes.137- `references/combos/keda-dcgm.md`: DCGM metrics as KEDA triggers.138- `templates/`: `cuda-vectoradd.yaml`, `time-slicing-config.yaml`, `values-llm.yaml`, `nvidiadriver.yaml`.139140## Companion skills141142- `vllm`: the workload. Install: `npx skills add ScaleDockHQ/llm-skills --skill vllm`.143- `ray-serve`: Ray Serve LLM and KubeRay on GPU nodes. Install: `npx skills add ScaleDockHQ/llm-skills --skill ray-serve`.144- `dcgm-exporter`: GPU metrics in depth. Install: `npx skills add ScaleDockHQ/llm-skills --skill dcgm-exporter`.145- `keda`: scale model pods on queue and GPU metrics. Install: `npx skills add ScaleDockHQ/llm-skills --skill keda`.146- `gateway-api-inference-extension`: route to the pods. Install: `npx skills add ScaleDockHQ/llm-skills --skill gateway-api-inference-extension`.147- `choosing-hardware`: pick GPUs and sizing. Install: `npx skills add ScaleDockHQ/llm-skills --skill choosing-hardware`.148- `nvidia-dgx-spark`: single-node DGX Spark setup (not Kubernetes). Install: `npx skills add ScaleDockHQ/llm-skills --skill nvidia-dgx-spark`.