Skip to main content

Kubernetes DRA — Dynamic Resource Allocation Framework

25 min read

DRA (Dynamic Resource Allocation) is not a GPU-only feature — it is a general-purpose device allocation framework that Kubernetes designed for requesting, configuring, and sharing specialized hardware of all kinds. Once a vendor provides a DRA driver, any device — GPUs, high-performance NICs, RDMA adapters, NVLink interconnects, FPGAs — can be dynamically allocated through the same API.

This document covers DRA from a framework perspective — the core API model, the resource types DRA handles, and adoption criteria with prerequisites. The parameters for actually enabling DRA in EKS GPU environments (Karpenter ignoreDRARequests, the NVIDIA DRA driver 3-layer settings) are covered in GPU Resource Management.


Background — Limitations of the Device Plugin Model​

Kubernetes' existing extended resource model (Device Plugin) represents devices only as opaque integer counters such as nvidia.com/gpu: 1. The model is simple and stable, but it cannot express the following requirements.

Table 1. Requirements the Device Plugin model cannot express

LimitationDescription
Opaque integer interfaceDevices are exposed only as integer extended resources such as nvidia.com/gpu: 1. The Device Plugin's ListAndWatch streams device lists and health changes, so the quantity itself is updated at runtime, but allocation constraints such as changing partitioning cannot be expressed through an integer counter
Sharing not expressible in the core APIThe integer extended-resource API itself cannot natively express shared ResourceClaims. This does not make physical partial allocation or sharing impossible — the NVIDIA Device Plugin provides sharing via MIG resources, time-slicing, and MPS (isolation levels differ by method)
No attribute-based selectionRequests like "a GPU with 80GB+ memory" or "an RDMA-capable NIC" are impossible
Limited scheduler-level cross-device constraintsThe kubelet Topology Manager can align device-plugin NUMA hints at the node-local level, but relationships between devices — "1 GPU + 1 NIC on the same NUMA node" — cannot be expressed as a scheduler-visible constraint
Per-device-type implementationsGPUs, NICs, and FPGAs each require a separate Device Plugin and counter scheme

DRA solves these limitations by having drivers declare device attributes and capacity as structured data, which workloads then select with CEL (Common Expression Language) expressions. This approach is called structured parameters (KEP-4381), and it allows the scheduler to simulate allocation without depending on vendor drivers.

The DRA Core Model​

The Four API Objects​

DRA consists of four objects in the resource.k8s.io/v1 API group.

Table 2. The four DRA API objects and their roles

ObjectCreated byRole
DeviceClassCluster admin / driverDefines device categories (e.g., gpu.nvidia.com, mrdma.google.com) with common selection criteria and configuration
ResourceSliceDRA driverPublishes the actual device inventory of a node (or cluster) — attributes, capacity, topology metadata
ResourceClaimWorkload operatorA request for specific devices. Matches attributes via CEL selectors; lifecycle is independent of the Pod
ResourceClaimTemplateWorkload operatorA template that auto-creates a ResourceClaim per Pod (used with Deployments and other multi-replica workloads)

Allocation Flow​

Figure 1. DRA device allocation flow

Expand the diagram to read labels and follow connections.
Diagram
  1. The DRA driver publishes the attributes and capacity of the devices it manages as ResourceSlices.
  2. The workload declares desired device conditions in a ResourceClaim (Template) using CEL selectors.
  3. kube-scheduler computes the allocation and selects a node using ResourceSlice data alone — no driver call happens at this point, which is the essence of structured parameters.
  4. kubelet delegates preparation to the node driver plugin, which injects the device into the container via a CDI (Container Device Interface) spec.

ResourceClaimTemplate example — requesting "1 GPU with at least 80Gi of memory" by attribute (80Gi is a binary unit of roughly 85.9 GB, so a nominal 80 GB device can be excluded from matching). The device.capacity key in the selector below must be verified against the actual capacity key your driver publishes.

apiVersion: resource.k8s.io/v1
kind: ResourceClaimTemplate
metadata:
name: large-gpu-template
spec:
spec:
devices:
requests:
- name: gpu
exactly:
deviceClassName: gpu.nvidia.com
selectors:
- cel:
expression: device.capacity['nvidia.com'].memory.compareTo(quantity('80Gi')) >= 0

Version History​

Table 3. DRA status by Kubernetes version

K8s versionStatusNotes
1.26Alphaclassic DRA (KEP-3063, later deprecated)
1.30Alphastructured parameters introduced (KEP-4381)
1.32Betav1beta1, new implementation baseline (disabled by default)
1.34GAresource.k8s.io/v1, enabled by default
1.35Stable (locked)feature gate locked-to-default

The core framework reached GA in 1.34; individual advanced capabilities have varying maturity, as described in Advanced Capabilities below.

Resource Types Covered by DRA​

DRA's extension point is the driver. Once a vendor or project writes a driver for its device and publishes ResourceSlices, the scheduler allocates it with the same matching logic regardless of device kind.

Table 4. Resource types covered by DRA and their representative drivers

Resource typeRepresentative driverTarget devicesMaturity (2026.07)
GPUNVIDIA k8s-dra-driver-gpu (v0.4.x), AMD/Intel driversWhole GPUs, MIG partitionsGPU allocation subsystem disabled by default (early stage)
Network devicesDraNet (kubernetes-sigs/dranet, v1.3.0)RDMA NICs, gVNIC, Multi-NICBeta → heading to GA. GKE offers managed DRANET
High-performance interconnectsNVIDIA ComputeDomain (k8s-dra-driver-gpu subsystem)Multi-Node NVLink (MNNVL), IMEX domainsUsed on rack-scale systems such as GB200 NVL72
FPGAs, custom acceleratorsCustom drivers (based on kubernetes-sigs/dra-example-driver)FPGAs, ASICs, video capture, etc.Driver development kit available; varies by vendor

GPU​

The most mature application area. The NVIDIA DRA driver consists of two subsystems — GPU allocation and ComputeDomain — and the GPU allocation subsystem provides capabilities impossible with the Device Plugin, such as dynamic creation and allocation of MIG partitions. For the enablement parameters and Karpenter combination on EKS, see GPU Resource Management.

Network Devices — DraNet​

DraNet is a Kubernetes SIG project that allocates network interfaces via DRA. It treats RDMA interfaces as first-class schedulable resources for AI/HPC workloads, without CNI chaining or annotation gymnastics. GKE ships managed DRANET alongside its A4X Max (GB300 NVL72) instances and auto-installs the mrdma.google.com (RDMA) and netdev.google.com (general NIC) DeviceClasses. EKS has no managed integration yet, so self-deployment is required.

# DraNet — requesting an RDMA-capable NIC by attribute
apiVersion: resource.k8s.io/v1
kind: ResourceClaimTemplate
metadata:
name: rdma-nic-template
spec:
spec:
devices:
requests:
- name: rdma-nic
exactly:
deviceClassName: dra.net
selectors:
- cel:
expression: device.attributes['dra.net'].rdma == true

High-Performance Interconnects — ComputeDomain​

The ComputeDomain subsystem of the NVIDIA DRA driver abstracts a group of GPUs connected via Multi-Node NVLink into a single domain. It guarantees NVLink reachability and isolation between Pods within the domain, and automatically configures IMEX (Internode Memory Exchange) channels. It allocates the GPU interconnect topology itself rather than "a number of GPU cards" — a flagship example of DRA going beyond simple device counting.

FPGAs and Custom Accelerators​

kubernetes-sigs/dra-example-driver is a forkable reference implementation for developing DRA drivers for your own devices. It provides the boilerplate for ResourceSlice publication, the kubelet plugin, and CDI integration, so devices without vendor drivers — in-house FPGAs, dedicated ASICs — can also be integrated into the DRA scheme.

Advanced Capabilities as a General-Purpose Framework​

These are DRA-specific capabilities that the Device Plugin model cannot express. Even after core GA (1.34), individual features have differing maturity, so verify before adopting.

Table 5. DRA-specific advanced capabilities and maturity

CapabilityDescriptionMaturity (as of K8s 1.36)
Prioritized list (firstAvailable)Ranked alternatives such as "H100 first, otherwise A100"Stable (1.36)
Admin accessPrivileged access to in-use devices for monitoring/diagnostic toolsBeta
Partitionable devicesDrivers dynamically create and advertise partitions (e.g., MIG) — the scheduler understands the physical-device-to-partition relationshipBeta (1.36)
Consumable capacityMultiple ResourceClaims share one device's capacity — Claims share a device the way Pods share node resourcesBeta (1.36)
Device taints/tolerationsThe device-level version of node taints — mark specific devices for repair or isolationBeta (1.36)
Device binding conditionsThe scheduler waits for fabric-attached devices to become ready before bindingBeta (1.36)

Of these, multi-heterogeneous-resource coordination matters most in practice. Requesting a GPU and a NIC in a single ResourceClaim with a "same PCIe switch / same NUMA node" constraint reduces the specified topology mismatch and can relieve GPU/NIC-alignment communication bottlenecks in distributed training and inference (the actual performance gain must be measured per workload, and not every communication bottleneck is eliminated). Under the Device Plugin scheme the kubelet Topology Manager can also align devices node-locally, but because the GPU plugin and the SR-IOV plugin are unaware of each other, this coordination could not be expressed as a scheduler-visible cross-device constraint.

Adoption Criteria and Prerequisites​

Cluster Requirements​

Table 6. Cluster requirements for adopting DRA

ItemRequirement
Kubernetes version1.34+ (DRA core GA, enabled by default). EKS 1.34/1.35 serves resource.k8s.io/v1 automatically
Container runtimeCDI support (containerd 1.7+ / CRI-O 1.23+)
DRA driverDeploy the vendor driver for the target device (GPU: NVIDIA DRA driver, NIC: DraNet, etc.)
Node provisioningDRA drivers are supported with Karpenter static capacity provisioning, EKS managed node groups, and self-managed nodes (AWS recommendation, K8s 1.34+). DRA is not currently supported with Karpenter dynamically provisioned capacity, and ignoreDRARequests only bypasses DRA during scheduling simulation rather than acting as a switch that enables DRA support — see GPU Resource Management
When using beta featuresEnable the relevant feature gates and API groups (EKS control plane is managed, so check supported scope)

Device Plugin vs DRA Decision Criteria​

Table 7. Choosing between Device Plugin and DRA by situation

SituationRecommendation
Only whole-GPU allocation needed, single device typeKeep Device Plugin (mature, simple)
Attribute-based device selection (memory size, model, firmware)DRA
Device partitioning/sharing (dynamic MIG creation, capacity splitting)DRA (partitionable/consumable capacity)
Aligned placement of heterogeneous devices such as GPU + NICDRA (impossible with Device Plugin)
Managing RDMA/Multi-NIC as schedulable resourcesDRA + DraNet
Multi-Node NVLink (GB200 NVL72, etc.)DRA required (ComputeDomain)
Using EKS Auto ModeDRA currently unavailable (per AWS documentation). See GPU Resource Management

Migration can proceed incrementally. However, if the Device Plugin and the DRA driver advertise the same physical devices on the same node, the GPU can be silently oversubscribed, so switching per workload group alone is not sufficient. Separate the node groups, or uninstall/disable the original Device Plugin on a node before enabling its DRA replacement there. For GPUs, flipping GPU Operator's devicePlugin.enabled=false is that turning point.

Summary​

DRA is Kubernetes' general-purpose device allocation framework, not limited to GPUs. With the DeviceClass/ResourceClaim/ResourceSlice model and CEL attribute matching, any device published by a vendor driver can be requested, configured, and shared through the same API. Beyond GPUs, RDMA NICs (DraNet), Multi-Node NVLink (ComputeDomain), and FPGAs/custom accelerators already operate in the DRA ecosystem. The core reached GA in K8s 1.34, but advanced capabilities such as partitionable devices and consumable capacity remain Beta, so verify per-feature maturity and adopt incrementally per workload group.

References​

Official Documentation​