Article

NVIDIA DRA on Kubernetes: A Clear Guide to GPU Resource Claims

Learn how Kubernetes Dynamic Resource Allocation changes GPU discovery and allocation, how claims fit into a workload, and what to verify before adoption.

Kubernetes GPU requests have often been expressed as counts of extended resources, such as a vendor-specific GPU resource. Dynamic Resource Allocation (DRA) adds a claim-based way to describe a device request and let a compatible driver participate in selecting and preparing it. NVIDIA DRA brings that model to supported NVIDIA GPU environments.

The important word is supported. DRA APIs, Kubernetes versions, NVIDIA driver support, and GPU Operator integration evolve. Treat this as a model for understanding the pieces, not a copy-and-paste installation guide. Before enabling it, confirm the exact compatibility matrix and manifests for the versions in your cluster.

What DRA changes

With a traditional extended-resource request, a workload asks for a quantity of a named resource. The device plugin reports capacity to Kubernetes, and the scheduler accounts for that quantity. This model works well for many clusters, but the request is intentionally simple: it usually does not describe a richer device selection or allocation workflow.

DRA introduces structured device claims. A workload refers to a claim, and the claim expresses the device requirements that a compatible driver can evaluate. Kubernetes APIs commonly involved in DRA include DeviceClass, ResourceClaim, and driver-published ResourceSlice objects. Exact APIs and fields depend on the Kubernetes release and feature availability.

In practical terms, instead of thinking only “this Pod needs one GPU,” an operator can work with a device request that is represented in the API and handled by a DRA driver. The driver discovers supported devices, publishes their availability, and participates in allocation and preparation for the workload. This does not automatically make every GPU property selectable; the driver must expose and support the relevant capabilities.

Follow the allocation path

A useful mental model is a chain of responsibilities:

  1. The DRA driver discovers devices it can manage and publishes device information to Kubernetes.
  2. A class or claim describes which supported device capabilities a workload needs.
  3. The workload references the claim.
  4. Kubernetes and the driver coordinate allocation to an eligible node.
  5. The driver prepares the selected device for the container, subject to the installed stack.

If a Pod cannot be scheduled, inspect the claim and scheduler events before debugging the application. If a Pod is scheduled but the device is unavailable in the container, investigate the driver and device-preparation path. The distinction is similar to other GPU integrations: scheduling a request and making a usable device available are related but separate checks.

DRA is not just a new resource name

It is tempting to treat DRA as a drop-in replacement for nvidia.com/gpu. That misses the API and driver behavior that make the model different. Existing dashboards, quotas, admission rules, workload templates, and capacity scripts may assume extended-resource quantities. Those integrations need to be reviewed before a migration.

The two models may also coexist during a transition, depending on the supported driver configuration. Do not assume both can safely manage the same physical GPU pool at the same time. Decide which component owns device discovery and allocation for each node group, and verify that no overlapping plugin or operator configuration is publishing contradictory capacity.

QuestionExtended-resource approachDRA approach
How a workload expresses demandA named resource and quantityA reference to a structured device claim
How devices are selectedResource accounting and normal placement constraintsClaim requirements interpreted through DRA APIs and a compatible driver
What must be integratedDevice plugin, scheduler, and workload requestKubernetes DRA support, driver, claim configuration, and workload reference
What remains version-specificResource names and plugin behaviorAPI availability, driver support, claim fields, and allocation behavior

This comparison is about the models, not a promise that one always schedules better. The right choice depends on supported capabilities and the operational tools your team can maintain.

Check compatibility before designing a claim

Start with versions, not YAML. Record the Kubernetes release, feature-gate and API state where applicable, NVIDIA GPU Operator or driver deployment method, GPU models, and any existing device plugin. Then confirm that the selected NVIDIA DRA driver supports that exact combination.

You can inspect whether relevant API resources exist in the cluster:

kubectl api-resources | grep -Ei 'deviceclass|resourceclaim|resourceslice'
kubectl get nodes -o wide
kubectl get pods -A -o wide | grep -Ei 'nvidia|gpu|dra'

The first command is only a discovery check. Seeing an API resource does not prove that the NVIDIA driver is installed, compatible, or publishing usable devices. Likewise, a driver Pod in Running state does not prove that a claim can be allocated. Check the release-specific setup and support matrix before proceeding.

Understand the claim-to-container relationship

A DRA workload generally refers to a resource claim in its Pod configuration. The claim may be created directly or from a template, and the exact manifest structure depends on the DRA API version and driver. Do not copy fields from an example written for another Kubernetes release.

At a high level, the Pod needs to reference the claim, while the claim identifies a class or requirement understood by the driver. The driver must then allocate and prepare a device that satisfies that request. A claim object existing in the namespace is not enough: inspect its conditions and events, the Pod’s scheduling events, and the driver’s logs to see where the chain stopped.

Before production use, create a small test workload using the examples from the documentation for your exact driver release. Verify that:

Keep the test manifest with the version and observed results. It becomes a useful reference when upgrading Kubernetes or the GPU Operator.

Plan a migration as a platform change

Moving to DRA affects more than an application template. Inventory the systems that read GPU capacity: quotas, namespace policy, admission controllers, deployment charts, dashboards, node labels, capacity reports, and incident runbooks. Identify which ones assume integer extended-resource counts and decide how they should represent claims.

Start with a canary node pool or non-critical workload. Keep the existing allocation path available for workloads that have not migrated, if the supported architecture allows it. Avoid changing the driver, Kubernetes version, and workload schema at the same time; independent changes are easier to troubleshoot. Define a rollback process before expanding the rollout, including how to return workloads to the previous allocation model.

During the trial, measure more than successful scheduling. Record allocation failures, time to claim readiness, device visibility, workload startup, GPU health, and application-level throughput or latency. DRA can make resource intent more expressive, but it does not guarantee faster jobs, stronger isolation, or better utilization on its own.

Troubleshoot by layer

When a claim does not become usable, look for the earliest failure:

  1. API: Does the cluster expose the required DRA APIs, and is the manifest valid for that version?
  2. Claim: Does the claim reference a supported class and show useful status or events?
  3. Capacity: Has the driver published eligible devices on the nodes you expect?
  4. Scheduling: Do node affinity, taints, topology rules, and other constraints leave an eligible node?
  5. Driver preparation: Did the DRA driver report allocation or container-preparation errors?
  6. Application: Once the device is visible, does the framework and workload initialize it successfully?

Gather the Pod and claim descriptions, relevant events, driver logs, and version details before restarting components. A restart can clear the evidence needed to determine whether the failure was API validation, device discovery, scheduling, or runtime preparation.

When DRA is worth evaluating

DRA is worth studying when your platform needs a richer device-allocation API and your Kubernetes and NVIDIA stack explicitly support it. It may also be relevant when building new workload abstractions that should describe device needs through claims rather than hard-coding assumptions about one resource name.

If your current device-plugin workflow is reliable and your workloads need only a simple count of GPUs, migration may bring more operational work than immediate value. Start with a clear use case, compare the supported features, and test the integrations your cluster depends on. For background, see the Kubernetes Dynamic Resource Allocation documentation and the NVIDIA GPU Operator documentation.