DRA on NKP 2.19: The Complete Reference for GPU Claims on Kubernetes 1.36¶
The NKP 2.19 AI conformance page proves one thing about DRA: the APIs are served, the NVIDIA driver is running, and an A40 shows up in a ResourceSlice.1 It never schedules a pod through a ResourceClaim. This post picks up where that check stops — every command, manifest, and gotcha you need to actually run GPU workloads through DRA on NKP 2.19.
What the conformance check proves, and what it doesn't¶
NKP 2.19 is CNCF Kubernetes AI Conformant for v1.36. It runs Kubernetes v1.36.2, NVIDIA GPU Operator v26.3.3, and the NVIDIA DRA driver chart dra-driver-nvidia-gpu@0.4.1, all deployed as Flux HelmReleases in the kommander namespace.1
| Proven on the conformance page | Not shown there (covered below) |
|---|---|
resource.k8s.io/v1 serves 4 kinds | A pod actually allocated through a claim |
| 5 NVIDIA DeviceClasses exist | Which DeviceClasses work out of the box vs need feature gates |
ResourceSlice publishes gpu-0 (A40, driver 580.126.18) | Selecting devices by attribute with CEL |
| Controller, kubelet plugin, webhook pods Running | GPU sharing, MIG, fallbacks, quotas, admin access |
Device plugin also on, same GPU as nvidia.com/gpu | Why running both on one node is a trap |
That last row matters most. Start there once you've confirmed the basics.
DRA in four objects¶
If you know PersistentVolumes, you already know DRA. A ResourceClaim is a PVC for devices.
| Object | Scope | Who writes it | PV/PVC analogy |
|---|---|---|---|
ResourceSlice | Cluster | The driver's kubelet plugin | The PV inventory |
DeviceClass | Cluster | Driver chart or admin | StorageClass |
ResourceClaim | Namespace | You | A PVC you create by hand (shareable) |
ResourceClaimTemplate | Namespace | You | volumeClaimTemplates (one claim per pod) |
The flow: the driver publishes devices in ResourceSlices → you request a DeviceClass in a claim → the scheduler picks the node and the exact device → the kubelet plugin prepares it and injects it into the container via CDI.
That last step is why DRA pods don't need runtimeClassName: nvidia. Containerd 2.x enables CDI by default, and NKP's GPU nodes run containerd 2.3.1.1
What Kubernetes 1.36 gives you¶
DRA core went GA in Kubernetes 1.34, and the feature gate was locked on in 1.35.23 Version 1.36 graduated most of the features you'll actually use.4
| Feature | Gate | Stage in 1.36 | On by default? |
|---|---|---|---|
| Core DRA (claims, classes, slices) | DynamicResourceAllocation | Stable | Locked on |
Prioritized list (firstAvailable) | DRAPrioritizedList | Stable | Yes |
| Admin access | DRAAdminAccess | Stable | Yes |
| Extended resource mapping (KEP-5004) | DRAExtendedResource | Beta | Yes |
| Device taints and tolerations | DRADeviceTaints | Beta | Yes |
DeviceTaintRule objects | DRADeviceTaintRules | Beta | No |
| Partitionable devices | DRAPartitionableDevices | Beta | Yes |
| Consumable capacity | DRAConsumableCapacity | Beta | Yes |
| Device binding conditions | DRADeviceBindingConditions | Beta | Yes |
| Device status in claims | DRAResourceClaimDeviceStatus | Beta | Yes |
| Resource pool status, node allocatable, workload claims | various | Alpha | No |
Source: the Kubernetes feature-gate reference.2
One limitation hasn't moved: the scheduler can't preempt pods for DRA resources. A high-priority pod waiting on a claimed GPU stays Pending until the holder exits.5 If you rely on priority-based preemption for GPU fairness today, plan for that before you migrate.
What NVIDIA DRA driver 0.4.1 gives you¶
The driver moved to kubernetes-sigs/dra-driver-nvidia-gpu and switched to semver at v0.4.0.13 It has two halves: GPUs and ComputeDomains (Multi-Node NVLink). The project README calls ComputeDomains "officially supported," while GPU allocation features "can be tried out" but "are not yet officially supported."8
Here's what each of the 5 DeviceClasses on the conformance cluster selects:9
| DeviceClass | Selects | Usable on NKP's A40 out of the box? |
|---|---|---|
gpu.nvidia.com | Full GPUs (type == 'gpu'), mapped to nvidia.com/gpu | Yes |
mig.nvidia.com | Pre-created MIG instances (type == 'mig') | No — A40 is not MIG-capable |
vfio.gpu.nvidia.com | GPUs bound to vfio-pci for VMs | Needs PassthroughSupport gate |
compute-domain-daemon.nvidia.com | IMEX daemon for a ComputeDomain | GB200-class NVLink hardware only |
compute-domain-default-channel.nvidia.com | IMEX channel for ComputeDomain pods | GB200-class NVLink hardware only |
The node label nvidia.com/mig.capable=false on the conformance cluster confirms the MIG row.1
Several features you might expect are behind driver-level feature gates, separate from the Kubernetes ones. In 0.4.1:10
| Driver feature gate | Unlocks | Stage | Default |
|---|---|---|---|
TimeSlicingSettings | Custom time-slice interval in GpuConfig | Alpha | Off |
MPSSupport | sharing.strategy: MPS | Alpha | Off |
PassthroughSupport | vfio.gpu.nvidia.com allocation | Alpha | Off |
DynamicMIG | Create MIG instances on demand | Alpha | Off |
NVMLDeviceHealthCheck | Mark unhealthy GPUs via NVML | Alpha | Off |
DeviceMetadata | Device metadata files inside containers | Alpha | Off |
IMEXDaemonsWithDNSNames | DNS names for IMEX daemons | Beta | On |
ComputeDomainCliques | ComputeDomainClique CRD | Beta | On |
Plain full-GPU allocation and sharing one claim between containers need no gates. Everything else on this list does.
Step 1: Verify DRA on your NKP cluster¶
Run these against the cluster that holds your GPU nodes. The conformance page targets the kommander workspace namespace.1
- DRA API is served at v1
- The DRA driver HelmRelease is Ready
- The DeviceClasses exist
- Each GPU node has a ResourceSlice
- The controller and kubelet plugin pods are Running
kubectl api-resources --api-group=resource.k8s.io
kubectl get helmrelease nvidia-dra-driver -n kommander
kubectl get deviceclasses
kubectl get resourceslices -o wide
kubectl get pods -n kommander | grep dra-driver
Expected (from the conformance cluster):
NAME SHORTNAMES APIVERSION NAMESPACED KIND
deviceclasses resource.k8s.io/v1 false DeviceClass
resourceclaims resource.k8s.io/v1 true ResourceClaim
resourceclaimtemplates resource.k8s.io/v1 true ResourceClaimTemplate
resourceslices resource.k8s.io/v1 false ResourceSlice
dra-driver-nvidia-gpu-controller-5766489b58-llkm2 1/1 Running
dra-driver-nvidia-gpu-kubelet-plugin-skjzq 2/2 Running
dra-driver-nvidia-gpu-webhook-6bfb76d88d-2sgwt 1/1 Running
Now dump every GPU the driver knows about, one line per device. This is your GPU inventory now — not node labels:
kubectl get resourceslices -o json | jq -r '
.items[] | select(.spec.driver == "gpu.nvidia.com")
| .spec.nodeName as $node
| .spec.devices[]
| [$node, .name,
.attributes.type.string,
.attributes.productName.string,
.attributes.driverVersion.version,
.capacity.memory.value] | @tsv'
The memory value shown is illustrative; the other fields match what the conformance page shows.1
Attributes you can select on¶
The 0.4.1 kubelet plugin publishes these on every full GPU:11
| Attribute | CEL type | A40 value |
|---|---|---|
type | string | gpu |
uuid | string | GPU-0384e187-... |
productName | string | NVIDIA A40 |
brand | string | e.g. Nvidia |
architecture | string | Ampere |
cudaComputeCapability | version | 8.6.0 |
driverVersion | version | 580.126.18 |
cudaDriverVersion | version | e.g. 13.0.0 |
resource.kubernetes.io/pcieRoot | string | PCIe root complex (when available) |
Capacity: memory (bytes). MIG devices also carry multiprocessors and profile.
Step 2: Pick one allocation path per node¶
Here's what the conformance page doesn't spell out. The DRA driver chart refuses to install the GPU half by default, because it can't safely run next to the device plugin:
when 'resources.gpus.enabled=true' this DRA driver cannot be deployed alongside the standard GPU device plugin on the same node. To avoid potential collisions between these two components, we will not allow this default to take effect until KEP 5004 has reached GA in upstream Kubernetes.9
You bypass it with gpuResourcesEnabledOverride=true. The conformance cluster runs both on one A40 node — fine for a conformance demo, not fine for production.
The failure mode: the device plugin hands GPU-0384... to pod A via the kubelet. The scheduler, which only tracks DRA allocations, hands the same GPU to pod B's claim. Two workloads, one GPU, no isolation, and OOMs nobody can explain.
Note that NKP 2.19's GPU Operator chart default is devicePlugin.enabled: false.1 Out of the box, DRA is NKP's default GPU path. The conformance team turned the device plugin on only to run the nvidia.com/gpu checks.
Choose per node pool:
| Situation | Device plugin | DRA GPU plugin |
|---|---|---|
| Greenfield NKP 2.19 cluster | Off (NKP default) | On |
Existing workloads use nvidia.com/gpu | Off — let extended resource mapping serve them (Step 7) | On |
Third-party operator reads nvidia.com/gpu allocatable from node status | On, on a dedicated pool | Off on that pool |
| Migration window | On for pool A | On for pool B |
To split pools, label the nodes and keep each plugin off the other's pool. The GPU Operator honors per-node deploy labels:15
# Pool B: DRA only — stop the device plugin on these nodes
kubectl label node <gpu-node> nvidia.com/gpu.deploy.device-plugin=false --overwrite
kubectl label node <gpu-node> nvidia.com/dra-kubelet-plugin=true
Then pin the DRA kubelet plugin to that label with a values override:
Changing DRA driver values on NKP¶
Don't kubectl edit the HelmRelease. NKP manages it through Kommander, and your edit gets reconciled away. The conformance page shows the NKP pattern instead: an optional values ConfigMap that the HelmRelease already references.1
Find the hook first:
Look for an entry with "optional": true. Create that ConfigMap with your values. The name and key below are placeholders — use the ones from the output above:
apiVersion: v1
kind: ConfigMap
metadata:
name: <name-from-valuesFrom>
namespace: kommander
data:
<key-from-valuesFrom>: |
featureGates:
TimeSlicingSettings: true
MPSSupport: true
kubeletPlugin:
nodeSelector:
nvidia.com/dra-kubelet-plugin: "true"
kubectl apply -f dra-overrides.yaml
flux reconcile helmrelease nvidia-dra-driver -n kommander --with-source
kubectl get helmrelease nvidia-dra-driver -n kommander
The GPU Operator device-plugin toggle works the same way. The conformance page used ConfigMap nvidia-gpu-operator-config-deviceplugin-defaults with devicePlugin.enabled: true. Delete it to return to the DRA-only default.1
Step 3: Your first claim — one full GPU¶
Use a ResourceClaimTemplate when each pod needs its own GPU. That's most workloads.
apiVersion: v1
kind: Namespace
metadata:
name: dra-demo
---
apiVersion: resource.k8s.io/v1
kind: ResourceClaimTemplate
metadata:
name: single-gpu
namespace: dra-demo
spec:
spec:
devices:
requests:
- name: gpu
exactly:
deviceClassName: gpu.nvidia.com
---
apiVersion: v1
kind: Pod
metadata:
name: cuda-smoke
namespace: dra-demo
spec:
restartPolicy: Never
resourceClaims:
- name: gpu
resourceClaimTemplateName: single-gpu
containers:
- name: cuda
image: nvcr.io/nvidia/k8s/cuda-sample:vectoradd-cuda12.5.0-ubuntu22.04
resources:
claims:
- name: gpu
tolerations:
- key: nvidia.com/gpu
operator: Exists
effect: NoSchedule
Note the exactly: wrapper. It's required in resource.k8s.io/v1. Manifests from 2024–2025 blog posts that put deviceClassName directly under the request were written for v1beta1 and won't validate on NKP 2.19.
Drop the toleration if your GPU nodes aren't tainted. Then run it and check what you got:
kubectl apply -f cuda-smoke.yaml
kubectl logs -n dra-demo cuda-smoke
kubectl get resourceclaims -n dra-demo
kubectl get resourceclaim -n dra-demo -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.status.allocation.devices.results[*].device}{"\t"}{.status.allocation.devices.results[*].pool}{"\n"}{end}'
[Vector addition of 50000 elements]
...
Test PASSED
NAME STATE AGE
cuda-smoke-gpu-x7k2p allocated,reserved 12s
cuda-smoke-gpu-x7k2p gpu-0 rocky-98-...-gpu-6nz8n-bgqqg-25m89
.status.allocation is the source of truth for which physical GPU a pod holds. The pool is the node name; the device is the ResourceSlice entry.
The generated claim is deleted with the pod. A standalone ResourceClaim is not — it lives until you delete it.
Inside a Deployment¶
Same pattern, in the pod template. Each replica gets its own claim and its own GPU:
apiVersion: apps/v1
kind: Deployment
metadata:
name: vllm
namespace: dra-demo
spec:
replicas: 2
selector:
matchLabels: {app: vllm}
template:
metadata:
labels: {app: vllm}
spec:
resourceClaims:
- name: gpu
resourceClaimTemplateName: single-gpu
containers:
- name: vllm
image: vllm/vllm-openai:latest # pin a release tag in production
args: ["--model", "Qwen/Qwen2.5-1.5B-Instruct"]
resources:
claims:
- name: gpu
With 1 GPU in the cluster, replica 2 stays Pending. Expect the same event the conformance page captured for its second pod: cannot allocate all claims.1
Step 4: Select devices with CEL¶
This is where DRA beats nvidia.com/gpu: 1. You describe the GPU you need, not a node label you hope is accurate.
Need at least 40 GiB of GPU memory:
- name: gpu
exactly:
deviceClassName: gpu.nvidia.com
selectors:
- cel:
expression: >-
device.capacity['gpu.nvidia.com'].memory.compareTo(quantity('40Gi')) >= 0
Need Ampere or newer, on a driver of at least 580:
selectors:
- cel:
expression: >-
device.attributes['gpu.nvidia.com'].cudaComputeCapability.compareTo(semver('8.0.0')) >= 0 &&
device.attributes['gpu.nvidia.com'].driverVersion.compareTo(semver('580.0.0')) >= 0
Pin to a product:
Multiple selectors are ANDed. The scheduler evaluates them against ResourceSlices, so a selector that matches nothing leaves the pod Pending rather than failing — check your expression against the jq inventory from Step 1 first.
Bake policy into your own DeviceClass¶
Don't make every team repeat the same CEL. Create a class once:
apiVersion: resource.k8s.io/v1
kind: DeviceClass
metadata:
name: inference-40g.nkp.local
spec:
selectors:
- cel:
expression: "device.driver == 'gpu.nvidia.com' && device.attributes['gpu.nvidia.com'].type == 'gpu'"
- cel:
expression: "device.capacity['gpu.nvidia.com'].memory.compareTo(quantity('40Gi')) >= 0"
Teams now request deviceClassName: inference-40g.nkp.local. Change the hardware policy in one place.
Step 5: Fall back across GPU types with a prioritized list¶
Prioritized list went stable in 1.36.4 Use firstAvailable instead of exactly, and the scheduler tries each subrequest in order:
apiVersion: resource.k8s.io/v1
kind: ResourceClaimTemplate
metadata:
name: best-available-gpu
namespace: dra-demo
spec:
spec:
devices:
requests:
- name: gpu
firstAvailable:
- name: large
deviceClassName: gpu.nvidia.com
selectors:
- cel:
expression: "device.capacity['gpu.nvidia.com'].memory.compareTo(quantity('80Gi')) >= 0"
- name: a40
deviceClassName: gpu.nvidia.com
selectors:
- cel:
expression: "device.attributes['gpu.nvidia.com'].productName == 'NVIDIA A40'"
The container still references the claim as gpu. To see which branch won:
kubectl get resourceclaim <claim> -n dra-demo \
-o jsonpath='{.status.allocation.devices.results[*].request}'
# gpu/a40
Your app should read the GPU it got (nvidia-smi --query-gpu=memory.total --format=csv) and size batch or context length to match.
Step 6: Share a GPU¶
DRA gives you 4 ways to share with the 0.4.1 driver:
| Method | How | Gate needed | Isolation |
|---|---|---|---|
| Shared claim, default time-slicing | Multiple containers or pods reference one claim | None | None — shared memory, shared faults |
| Time-slicing with custom interval | GpuConfig with strategy: TimeSlicing + interval | TimeSlicingSettings | None |
| MPS | GpuConfig with strategy: MPS | MPSSupport | Per-client thread % and pinned memory limit |
| MIG | mig.nvidia.com | None (static MIG) | Hardware |
Share across containers in one pod (no gates)¶
Two containers referencing one claim get the same GPU:
spec:
resourceClaims:
- name: shared-gpu
resourceClaimTemplateName: single-gpu
containers:
- name: model
image: ubuntu:22.04
command: ["bash", "-c", "nvidia-smi -L; sleep 9999"]
resources:
claims:
- name: shared-gpu
- name: sidecar
image: ubuntu:22.04
command: ["bash", "-c", "nvidia-smi -L; sleep 9999"]
resources:
claims:
- name: shared-gpu
Both containers print the same UUID. This is the upstream gpu-test2 example.12
Share across pods (no gates)¶
Use a standalone ResourceClaim and point several pods at it with resourceClaimName:
apiVersion: resource.k8s.io/v1
kind: ResourceClaim
metadata:
name: team-shared-gpu
namespace: dra-demo
spec:
devices:
requests:
- name: gpu
exactly:
deviceClassName: gpu.nvidia.com
---
# in each pod spec
resourceClaims:
- name: gpu
resourceClaimName: team-shared-gpu
Every pod lands on the node that holds the claimed GPU. That's a feature for dev notebooks and a trap for Deployments you expected to spread.
MPS with limits (needs MPSSupport)¶
MPS is the only software sharing mode that caps each client. Enable the gate (Step 2), then:
apiVersion: resource.k8s.io/v1
kind: ResourceClaimTemplate
metadata:
name: mps-gpu
namespace: dra-demo
spec:
spec:
devices:
requests:
- name: gpu
exactly:
deviceClassName: gpu.nvidia.com
config:
- requests: ["gpu"]
opaque:
driver: gpu.nvidia.com
parameters:
apiVersion: resource.nvidia.com/v1beta1
kind: GpuConfig
sharing:
strategy: MPS
mpsConfig:
defaultActiveThreadPercentage: 50
defaultPinnedDeviceMemoryLimit: 10Gi
The containers in the pod that share this claim each get 50% of SMs and 10 GiB of pinned device memory. For time-slicing, swap the sharing block for strategy: TimeSlicing and timeSlicingConfig: {interval: Long}.12
The webhook running on the conformance cluster validates this opaque GpuConfig at admission. Without it, a typo surfaces only when the kubelet plugin fails to prepare the device and the pod sticks in ContainerCreating.
Compare this with the conformance page's sharing check, which uses device-plugin time-slicing — one node-wide replica count for every pod.1 DRA moves the sharing decision into each claim: one GPU shared 4 ways for notebooks, the GPU next to it exclusive for training, same node.
Step 7: Keep nvidia.com/gpu pods working without the device plugin¶
The gpu.nvidia.com DeviceClass in chart 0.4.1 sets extendedResourceName: nvidia.com/gpu when the cluster serves resource.k8s.io/v1.9 With DRAExtendedResource beta and on in 1.36,2 an unmodified pod like this:
…can be satisfied by DRA on a node where the device plugin is off. The scheduler creates a claim on the pod's behalf. This is the KEP-5004 bridge that lets you turn off the device plugin before every Helm chart in your catalog speaks ResourceClaim.4
Check it on your cluster before you rely on it — the conformance page doesn't exercise this path:
kubectl get pod <pod> -o jsonpath='{.status.extendedResourceClaimStatus}' | jq
kubectl get resourceclaims -n <ns>
You should see a scheduler-generated claim with an allocated gpu-N device.
Step 8: Multi-GPU claims and topology¶
Request 2 GPUs on the same PCIe root complex, for tensor parallelism without crossing the CPU interconnect:
devices:
requests:
- name: gpus
exactly:
deviceClassName: gpu.nvidia.com
count: 2
constraints:
- requests: ["gpus"]
matchAttribute: resource.kubernetes.io/pcieRoot
Take every GPU on a node (for a node-exclusive training job or a burn-in test):
allocationMode: All fails if any GPU on the candidate node is already claimed. It's for empty nodes, not "as many as you can get."
Step 9: MIG on MIG-capable pools¶
The A40 can't do MIG, but if your NKP cluster adds an H100 or A100 pool, mig.nvidia.com exposes pre-created instances. Partition with nvidia-mig-parted (or the GPU Operator's MIG manager) first; on-demand creation needs the DynamicMIG gate.10
Request 2 1g.10gb slices from the same physical GPU:
devices:
requests:
- name: mig-a
exactly:
deviceClassName: mig.nvidia.com
selectors:
- cel:
expression: "device.attributes['gpu.nvidia.com'].profile == '1g.10gb'"
- name: mig-b
exactly:
deviceClassName: mig.nvidia.com
selectors:
- cel:
expression: "device.attributes['gpu.nvidia.com'].profile == '1g.10gb'"
constraints:
- requests: []
matchAttribute: gpu.nvidia.com/parentUUID
Containers pick a slice with claims: [{name: <claim>, request: mig-a}]. This mirrors upstream gpu-test4.12
Step 10: Passthrough and ComputeDomains¶
These two DeviceClasses exist on every NKP 2.19 cluster but almost nobody will use them on day one.
vfio.gpu.nvidia.com binds a GPU to vfio-pci for a VM (KubeVirt). It needs the PassthroughSupport gate.10 On NKP the more common pattern is still AHV GPU passthrough to the worker VM, which is exactly what the conformance node uses (nvidia.com/gpu.machine=AHV).1
ComputeDomains give pods a secure Multi-Node NVLink domain on GB200-class systems. The driver runs an IMEX daemon per domain and injects channels into pods:14
apiVersion: resource.nvidia.com/v1beta1
kind: ComputeDomain
metadata:
name: training-domain
namespace: dra-demo
spec:
numNodes: 2
channel:
resourceClaimTemplate:
name: training-domain-channel
Pods then reference resourceClaimTemplateName: training-domain-channel alongside a normal GPU claim. On PCIe GPUs like the A40, these pods just stay Pending.
Step 11: Guardrails — quota, admin access, taints¶
Cap GPUs per namespace¶
DRA has its own quota key per DeviceClass. Cap a team at 2 full GPUs:6
apiVersion: v1
kind: ResourceQuota
metadata:
name: gpu-quota
namespace: team-a
spec:
hard:
gpu.nvidia.com.deviceclass.resource.k8s.io/devices: "2"
If you created custom classes (Step 4), add one line per class. A quota on nvidia.com/gpu alone doesn't cap claims made directly against a DeviceClass.
Let monitoring see every GPU¶
Admin access went stable in 1.36.2 It lets a pod attach to devices that are already allocated to someone else — for debugging and health checks — without consuming them. Only namespaces with a specific label can use it:7
apiVersion: v1
kind: Namespace
metadata:
name: gpu-ops
labels:
resource.kubernetes.io/admin-access: "true"
---
apiVersion: resource.k8s.io/v1
kind: ResourceClaimTemplate
metadata:
name: all-gpus-admin
namespace: gpu-ops
spec:
spec:
devices:
requests:
- name: gpus
exactly:
deviceClassName: gpu.nvidia.com
allocationMode: All
adminAccess: true
Lock that label down with RBAC or an admission policy. Anyone who can label a namespace can read every tenant's GPU.
Drain a bad GPU, not the whole node¶
Device taints are beta and on in 1.36.2 A tainted device is skipped for new claims unless the request tolerates it. The admin-facing DeviceTaintRule object is gated off by default in 1.36, so on NKP 2.19 taints arrive from the driver. Enable NVMLDeviceHealthCheck (Step 2) to have the driver flag unhealthy GPUs.10
Step 12: Use DRA as your driver verification¶
The conformance requirement for driver runtime management asks platforms to verify drivers through DRA once the accelerator supports it. On NKP the ResourceSlice already carries driverVersion, matching the node label nvidia.com/cuda.driver-version.full=580.126.18.1
Turn that into a fleet check during NKP upgrades — flag any GPU not on the target driver:
TARGET=580.126.18
kubectl get resourceslices -o json | jq -r --arg t "$TARGET" '
.items[] | select(.spec.driver == "gpu.nvidia.com")
| .spec.nodeName as $n | .spec.devices[]
| select(.attributes.driverVersion.version != $t)
| "\($n)\t\(.name)\t\(.attributes.driverVersion.version)"'
Empty output means every GPU matches. Add a driverVersion CEL selector to claims that must not land on a node mid-upgrade.
Troubleshooting¶
| Symptom | Likely cause | Check |
|---|---|---|
Pod Pending, event cannot allocate all claims | No free device matches the request | kubectl get resourceslices -o yaml; loosen CEL; check other claims holding the GPU |
| Pod Pending, no DRA events | Claim references a DeviceClass that doesn't exist | kubectl get deviceclasses |
gpu.nvidia.com missing from DeviceClasses | Chart rendered without GPU resources (override guard) | HelmRelease values: resources.gpus.enabled, gpuResourcesEnabledOverride |
| No ResourceSlice for a GPU node | Kubelet plugin not scheduled there, or wrong driver root | kubectl get pods -n kommander -o wide \| grep kubelet-plugin; nvidiaDriverRoot is / for host drivers, /run/nvidia/driver for operator-managed |
Pod stuck ContainerCreating | Kubelet plugin failed to prepare the device (bad opaque config, gate off) | kubectl describe pod; kubelet plugin logs |
| Claim rejected at admission | Webhook rejected GpuConfig, often a gated feature | Enable the driver gate; kubectl logs deploy/dra-driver-nvidia-gpu-webhook -n kommander |
| Two pods see the same GPU unexpectedly | Device plugin and DRA both on that node | nvidia.com/gpu.deploy.device-plugin label; Step 2 |
| High-priority pod never preempts | DRA has no preemption | Expected; free the device manually5 |
Manifest fails validation on deviceClassName | v1beta1 syntax without exactly: | Wrap the request in exactly: |
What I couldn't verify¶
- NKP's exact override hook for
nvidia-dra-driver. The conformance page shows the ConfigMap pattern only for the GPU Operator. ThevaluesFromlookup in Step 2 tells you the real name on your cluster. - Extended resource mapping end to end on NKP. The chart sets
extendedResourceNameand the 1.36 gate is on, but the conformance page doesn't schedule a pod through it. Test before you remove the device plugin. - The A40's published
memorycapacity value. The page shows attributes, not capacity. The 46068Mi in Step 1 is derived from thenvidia.com/gpu.memorynode label. - Newer driver versions on NKP. NVIDIA's docs now cover DRA driver v0.5.1 with GPU Operator v26.7.2, where full-GPU allocation is listed as generally available.13 NKP 2.19 pins 0.4.1; check your NKP release notes before assuming 0.5.x behavior.
Summary¶
The rule: one GPU allocation path per node, DRA by default, claims everywhere.
| If you need… | Use | Gate |
|---|---|---|
| One dedicated GPU per pod | ResourceClaimTemplate → gpu.nvidia.com | None |
| Only GPUs with ≥ N GiB, or a min driver | CEL selector or custom DeviceClass | None |
| "H100 if available, else A40" | firstAvailable | None (stable in 1.36) |
| Several containers on one GPU | One claim, many references | None |
| Capped sharing | GpuConfig MPS | MPSSupport |
| Hardware isolation | mig.nvidia.com on H100/A100 | None (static MIG) |
Legacy nvidia.com/gpu charts | Extended resource mapping | None (beta, on in 1.36) |
| GPU cap per team | gpu.nvidia.com.deviceclass.resource.k8s.io/devices quota | None |
| Monitoring across tenants | adminAccess: true + labeled namespace | None (stable in 1.36) |
Production checklist for DRA on NKP 2.19:
- Verified API, DeviceClasses, ResourceSlices, and driver pods (Step 1)
- Device plugin off on every node where the DRA GPU plugin runs
- Driver overrides applied through the HelmRelease
valuesFromConfigMap, notkubectl edit - All new manifests use
resource.k8s.io/v1withexactly:orfirstAvailable: - Custom DeviceClasses for your hardware tiers
- ResourceQuota per DeviceClass in every tenant namespace
-
resource.kubernetes.io/admin-accesslabel restricted by RBAC - Extended resource mapping tested before retiring
nvidia.com/gpu - Preemption-dependent GPU fairness redesigned (no DRA preemption)
- Driver-version check from ResourceSlices wired into your upgrade runbook
For a generic, non-NKP walkthrough of moving off the device plugin, see GPU DRA on Kubernetes: migrating off the NVIDIA device plugin.
-
Nutanix, CNCF AI Conformance — NKP 2.19 — verified on NKP 2.19.0-dev.34, Kubernetes v1.36.2, GPU Operator v26.3.3,
dra-driver-nvidia-gpu@0.4.1, NVIDIA A40, driver 580.126.18, containerd 2.3.1-d2iq.1. ↩↩↩↩↩↩↩↩↩↩↩↩↩ -
Kubernetes, Feature Gates — DRA gate stages by release (accessed 2026-11-05). ↩↩↩↩↩
-
Kubernetes Blog, Kubernetes v1.34: DRA has graduated to GA. ↩
-
Kubernetes Blog, Kubernetes v1.36: More Drivers, New Features, and the Next Era of DRA — 2026-05-07. ↩↩↩
-
Kubernetes, Dynamic Resource Allocation — "Limitations": no preemption for DRA resources. ↩↩
-
Kubernetes, Resource Quotas — DeviceClass-based quota for DRA. ↩
-
Kubernetes, Allocate devices to workloads using DRA — admin access and the
resource.kubernetes.io/admin-accessnamespace label. ↩ -
kubernetes-sigs, dra-driver-nvidia-gpu README at v0.4.1. ↩
-
kubernetes-sigs, dra-driver-nvidia-gpu Helm chart templates at v0.4.1 —
deviceclass-*.yaml,validation.yaml. ↩↩↩ -
kubernetes-sigs, pkg/featuregates/featuregates.go at v0.4.1. ↩↩↩↩
-
kubernetes-sigs, cmd/gpu-kubelet-plugin/deviceinfo.go at v0.4.1. ↩
-
kubernetes-sigs, demo/specs/quickstart/v1 at v0.4.1 —
gpu-test2,gpu-test4,gpu-test5,gpu-test-mps. ↩↩↩ -
NVIDIA, NVIDIA DRA Driver for GPUs — GPU Operator documentation (current page covers driver v0.5.1, GPU Operator v26.7.2). ↩↩
-
NVIDIA, GPU Operator — DRA ComputeDomains. ↩
-
NVIDIA, GPU Operator — Common Deployment Scenarios — per-node
nvidia.com/gpu.deploy.<component>labels. ↩
Discussion
Have thoughts on this post? Share them below — questions, corrections, or your own experience are all welcome.