What Kubernetes GPU scheduling with dynamic resource allocation does for your cluster
Kubernetes schedules GPUs by counting them. A pod asks for a number of devices through a resource limit, and the scheduler places it on a node with that many free. That works for whole-device requests, but it leaves the scheduler blind to what the device is, how much memory it has, whether it can be partitioned, or which devices should be paired on the same node. Dynamic Resource Allocation (DRA) lets a workload describe the accelerator it needs and lets the scheduler match that description to a device that is actually available. It is a Kubernetes capability, configured inside the cluster you control, and it is built from API objects such as DeviceClass and ResourceClaim that your platform team defines alongside the rest of the cluster configuration.
DRA is worth the added design work when GPU nodes run inference or training next to other workloads and the difference between devices matters. Examples include mixed GPU models in one pool, workloads that need a minimum memory size, or several pods that should share one device under controlled conditions. A device plugin setup is simpler and may be enough when every GPU in a pool is identical and whole-device allocation is acceptable. Before you choose, confirm the feature set for your chosen Kubernetes version in the release notes, because DRA capabilities and their maturity have changed between releases and depend on the version your cluster runs.
Kubernetes is open source under the Apache 2.0 license, so the DRA components are available without a license fee. The costs come from the GPU hardware, the nodes, the drivers and the people who design and operate the claim model. Your team should check the release notes for each version it plans to run, confirm which DRA API versions and feature gates are enabled by default, and confirm that the GPU vendor driver supports the DRA interface on that Kubernetes release. Treat that check as a gate in the upgrade plan, not a one-time step at install time.
How DRA differs from device plugins in practice
With the device plugin model, a vendor plugin registers with the kubelet on each node, and the kubelet reports the plugin's devices as extended resources under a resource name the plugin defines. The scheduler works from counts. It knows a node has a number of units of that resource and how many are free, but it does not see what each unit is. With Dynamic Resource Allocation, a resource driver publishes ResourceSlice objects that describe the devices, including named devices and their attributes. The scheduler reads that inventory and decides which specific device satisfies a request, so it works from a list of individual devices.
- Who publishes the inventory: the kubelet and device plugin in the first model, and the resource driver through ResourceSlice objects in DRA.
- What the scheduler sees: a per-node count of an extended resource in the first model, and named devices with attributes in DRA.
- Where the inventory lives: the device plugin reports to the local kubelet, while DRA inventory is an API object that operators can list and inspect.
- Pool scope: confirm whether your driver publishes devices per node or as pools that span nodes, because that changes how you plan capacity.
Confirm which driver release your accelerator vendor supports, and which Kubernetes version that release requires, before you pick a model for the cluster.
A device plugin workload requests devices inside the container's resource limits, using the extended resource name and an integer count. The request sits in the same place as CPU and memory settings, so teams that already write resource blocks recognize it. With DRA, an administrator defines a DeviceClass that selects a category of devices. The workload then references a ResourceClaim, or a ResourceClaimTemplate in its pod spec, that lists the devices it needs. The pod points to the claim, and the scheduler allocates matching devices to it.
- Request shape: an integer count under resource limits in the first model, and a claim with device requests that the pod references in DRA. An illustrative count request looks like
vendor.example/device: 1. - Who writes what: platform teams usually define DeviceClass objects, and application teams usually reference claims or templates from their workloads.
- Lifecycle: a device plugin allocation is tied to the container that received it, while a ResourceClaim is an object with its own lifecycle that the pod references.
- Reuse: a single claim can be referenced by more than one pod in the same namespace, a pattern the count-based model does not express.
Check how your current manifests and Helm charts request accelerators, because moving to claims changes every workload spec that uses them.
Device plugins give the scheduler little to select on beyond the resource name and count. Teams that need a particular memory size or device variant usually work around this with node labels, node selectors or separate resource names for each variant. DRA moves that selection to the device level. Each device in a ResourceSlice can carry attributes and capacity values published by the driver, and device requests can filter on them with selector expressions. The names and values depend entirely on the driver, so they differ between vendors and even between driver releases.
- Selection granularity: node labels and separate resource names in the first model, and per-device attributes in DRA.
- Expression language: node selectors and affinity rules in the first model, and CEL-based selector expressions in device requests. Confirm the expression form your Kubernetes version supports.
- Attribute ownership: the driver defines attribute names, so a policy written for one vendor's attributes will not carry over to another.
- Failure mode: a selector that matches no device leaves the claim unallocated and the pod pending, so alerting on pending pods matters more with DRA.
Ask each driver vendor for the full list of published attributes, then test one selector per device class in a non-production cluster before you rely on it.
With device plugins, sharing is usually configured inside the plugin. The plugin advertises more units under the same resource name than there are physical devices, and the scheduler treats those units as independent. The scheduler has no record of which pods share a physical device, so isolation depends on the plugin and the hardware. With DRA, sharing can be expressed in the claim itself. Several pods can reference one ResourceClaim to use the same allocated device, and drivers can publish partitions as separate devices. Sharing policy can also appear in claim configuration, which depends on what the driver supports.
- Plugin-side sharing: the node advertises more replicas under one resource name, and the scheduler does not track which pods share a physical device.
- Claim-side sharing: pods reference one ResourceClaim, so the allocation is visible in the API and tied to a namespace.
- Partitioning: whether a device can be split into partitions that the driver publishes as separate devices depends on the hardware and driver, so ask the vendor.
- Isolation: sharing modes differ in memory and fault isolation, so request the isolation guarantees for each mode in writing.
Confirm which sharing modes your driver supports on your exact accelerator model before you design tenant boundaries around them.
DeviceClass and ResourceClaim options and when each fits
This table compares the main DRA configuration choices for GPU workloads, showing when each fits and what trade-off it introduces. Read each row as a decision: pick the option that matches how your teams share devices and how strictly you need to control what gets allocated.
| Option | When it fits | Trade-off to plan for |
|---|---|---|
| DeviceClass with driver selector | One device type from a single DRA driver, such as a vendor GPU class that platform teams publish for application teams to request. | Selectors tie the class to a driver name, so a driver upgrade or vendor change can break existing claims. Confirm the driver's published attributes before writing selectors. |
| DeviceClass with CEL attribute selectors | Workloads that need a specific GPU model, memory size or capability, for example a large-memory device for inference. | Selectors narrow the candidate pool, so a request can stay pending when few devices match. Test selectors against real node inventory before rollout. |
| ResourceClaim (standalone) | A single shared inference service or a long-lived workload that should own one allocation, or a claim created by an operator for a known device. | The claim lives independently of pod lifecycle, so you must clean it up. Orphaned claims can hold devices that no pod uses. |
| ResourceClaimTemplate | Per-pod allocation where each replica should receive its own device, such as scaled inference replicas or batch Jobs. | Each pod gets a new claim, so scaling changes device demand directly. Capacity planning must count replicas, not nodes. |
| Shared claim across pods | Several containers or pods that must use the same device, for example a model server and a sidecar that reads GPU state. | Sharing a claim couples pod placement, since all consumers must land where the device is. Scheduling can serialize when many pods depend on one claim. |
| Admin-access claim for monitoring | Monitoring agents or diagnostics that need device-level visibility without normal allocation rights. | Admin access bypasses ordinary allocation controls. Restrict it to trusted namespaces with RBAC and confirm the driver supports this mode before relying on it. |
Setting up DRA for GPU workloads in your cluster
This sequence takes a self-managed cluster from a version check to a verified GPU test workload that claims devices through Dynamic Resource Allocation. Each step ends with a check you can run with kubectl, so the platform team can confirm the chain works before application teams depend on it.
Confirm the Kubernetes version and DRA API
The platform engineer confirms the cluster's minor version and checks that the Dynamic Resource Allocation API groups are served, since support and default settings depend on the release. Start by reading the server version, then list the resource.k8s.io API group and confirm that DeviceClass, ResourceClaim and ResourceSlice resources are present. Confirm the exact feature gate and API version for your release in the upstream documentation and in your distribution's notes, because managed or packaged distributions may enable it differently. The step is done when
kubectl versionreports the expected server version andkubectl api-resources --api-group=resource.k8s.iolists the DRA resource types.Install the vendor DRA driver on GPU nodes
The cluster administrator installs the DRA driver supplied by the accelerator vendor on the GPU nodes, along with any node components it requires, such as the container runtime hooks and device libraries. Confirm the driver version against the Kubernetes release you verified in the first step, and use the vendor's chart or manifests so that the driver pods are scheduled only onto GPU nodes. Ask the vendor which DRA driver versions they support for your Kubernetes minor version and which node operating system packages are required. The step is done when the driver DaemonSet or Deployment reports all pods ready on every GPU node, checked with
kubectl get pods -n <driver-namespace> -o wide.Verify published ResourceSlices
Next, the platform team confirms that the driver has published the devices it found on each node. The driver creates ResourceSlice objects that describe each device, its attributes and its capacity, and the scheduler uses them to place claims. Check that every GPU node has a matching slice and that the device count and attributes, such as model and memory, match what the hardware provides. If a node is missing from the list, check the driver logs and the node's device visibility before going further. The step is done when
kubectl get resourceslices -o wideshows one or more slices per GPU node andkubectl get resourceslice <name> -o yamllists the expected devices.Define DeviceClasses for each device profile
The platform team writes DeviceClass objects that describe the device types application teams may request, usually by selecting on the driver name and on device attributes. Keep the number of classes small and named for the capability they expose, such as a full device or a shareable partition, so that claims stay readable and auditable. Define selectors against attributes the driver actually publishes, and agree with the vendor on any sharing mode that a class enables. Apply the manifests from version control. The step is done when
kubectl get deviceclasseslists the expected classes andkubectl describe deviceclass <name>shows the selector you intended.Write ResourceClaims or claim templates
Application teams or the platform team write ResourceClaim objects, or ResourceClaimTemplates that Pods reference, to request devices from a DeviceClass. A claim states how many devices are needed and can add selectors for attributes such as memory size. Decide whether a claim is shared by several Pods or created per Pod, because that choice determines how devices are reused and cleaned up. Namespace the claims with the team that owns the workload and keep the request consistent with the device profile in the previous step. The step is done when
kubectl get resourceclaims -n <namespace>shows the claim, andkubectl describe resourceclaim <name>reports the allocation status, with the expected device listed after the scheduler binds it.Run a test workload and confirm allocation
The platform engineer runs a small test Pod that references a claim, with a command that prints the visible devices, such as a vendor query tool, to confirm the container sees the allocated hardware. Use a short-lived workload in a test namespace so the test can be removed cleanly afterward. Check the scheduling result, the claim binding and the device visibility in the container, and confirm that the Pod is not running on a node without a device. The step is done when the Pod reaches Running or Completed,
kubectl get resourceclaim -n <namespace>shows the claim allocated, and the container log lists the expected device. Record the commands and output so that the same check can be repeated after upgrades.
How a pod claim becomes an allocated GPU
The flow starts with the GPU driver publishing ResourceSlice objects that describe the devices on each node. A cluster administrator defines a DeviceClass that selects which devices qualify, and an application team creates a ResourceClaim, often from a template in its pod spec. The scheduler allocates a device against the claim, and the kubelet and driver prepare that device for the container. The trust boundary sits between the cluster administrator, who controls classes and drivers, and application teams, who only request devices through claims. Check that the classes match the hardware your drivers publish.
Device publication, class selection, claim allocation and node preparation for a pod.
Why DRA does not preempt allocated devices and what that means for queues
Dynamic Resource Allocation does not evict a pod that holds an allocated device to free that device for a higher-priority pod. Once the scheduler binds a ResourceClaim to a device, the holding pod keeps it until the pod finishes or is removed for another reason. A higher-priority pod that needs the same GPU stays pending. Pod priority through PriorityClass decides which pending pods the scheduler considers first, but it does not reclaim devices that are already in use. Teams that expect priority alone to protect urgent training or inference work will find that gap during their first capacity shortage.
That limit moves the scheduling decision into the queue layer that sits in front of the scheduler. Decide which workloads may hold a DeviceClass pool for long periods, such as a long-running inference server, and which are short batch jobs that release devices quickly. Then give each class its own namespace, quota or queue, so an urgent job competes only against work it is allowed to displace. Use a ResourceClaimTemplate for per-pod claims so that device lifetimes match pod lifetimes. As an illustrative example, if one inference deployment holds every GPU in a pool, a higher-priority training job will wait for that deployment to scale down, and the queue should make that wait visible to the team that submitted it.
Confirm the current behavior before you commit to a queue design. Check the Kubernetes documentation for Dynamic Resource Allocation and the release notes for the minor version you run, since feature status and scheduler behavior change between releases. Confirm also whether your accelerator driver adds any eviction or sharing behavior of its own. Then test the exact scenario in a staging cluster: fill a device pool with low-priority claims, submit a higher-priority pod, and record what the scheduler does. Document the result as an input to your queue policy, and recheck it at every planned Kubernetes upgrade.
Security and operational considerations for shared accelerators
Dynamic Resource Allocation moves device selection into objects that users and drivers can change, so the controls around those objects matter as much as the scheduling itself. The cards below cover who can define device classes and claims, what GPU driver components need on each node, and how to trace and watch device use over time.
Who may create device classes
A DeviceClass selects which devices a claim can use and carries the configuration applied to them, so it is a platform decision rather than an application one. Decide which team owns DeviceClass objects, keep them in version control, and confirm that application namespaces cannot create or edit them. Ask your driver vendor which selectors and configuration parameters the class should expose, since these define what a tenant can request.
Secrets good practicesRBAC on resource.k8s.io objects
Grant resourceclaims and resourceclaimtemplates permissions per namespace, and reserve write access to DeviceClass and ResourceSlice objects for cluster administrators or the driver's service account. Read access to claims reveals which workloads hold accelerators, so review get and list verbs as carefully as create. Test each role with kubectl auth can-i under the identities your teams actually use, including CI pipelines.
Privileges for GPU driver pods
Vendor GPU drivers and their DRA components often need elevated access to devices and host paths, which can conflict with the Pod Security Standards applied to the namespace. Confirm exactly which capabilities, host mounts and device files the driver requires, and keep those pods in a dedicated system namespace instead of relaxing enforcement for workloads. Restrict who can schedule into that namespace, because a compromised driver pod has direct reach into every GPU on the node.
Pod Security StandardsImage provenance for driver components
Driver daemonsets, device plugins and DRA kubelet plugins run with node-level reach, so their images deserve the strictest source control in the cluster. Pin images by digest, mirror them into your private registry, and verify signatures or vendor checksums before promotion. Record which driver build runs on which node class, because a mismatch between driver and kernel module versions is a common operational failure.
Monitoring device health
Scheduling success does not show whether a GPU is healthy, throttling, or near memory limits. Collect device-level metrics from the vendor exporter alongside node and pod metrics, and alert on failed health checks, ECC error growth and devices that stop appearing in ResourceSlice objects. Agree on who responds when a device is marked unhealthy, and how workloads holding a claim on that device are moved or drained.
Auditing claim changes
Create, update and delete events on ResourceClaim objects answer who requested which device and when, which matters for chargeback and incident investigation. Configure an audit policy that records request bodies for resource.k8s.io writes at a level your storage budget supports, and ship events to the same SIEM used for other API activity. Confirm retention with your compliance owner before setting the policy, because the right period depends on your obligations, not on a default.
CNCF conformanceQuestions buyers ask before building GPU scheduling with DRA
What drives the cost of a DRA GPU scheduling build?
The main cost drivers are the number of GPU nodes, how many driver and hardware combinations must work, the sharing model you choose, how much testing the cluster needs, and how many people on your team can operate the result. Each node class adds driver installation, device publishing and validation work, so a heterogeneous fleet costs more than a uniform one. Mixed hardware, multiple GPU vendors and multi-tenant sharing all add design and test effort. A quote should break the work into discovery, design, build, testing and handover, and state which items are one-time and which recur through upgrades and retainers. Ask the provider to list the node classes, device types and sharing rules that the price assumes.
How long does a DRA GPU scheduling project take?
Duration depends on the same factors as cost: the number of GPU node classes, the number of accelerator types, whether sharing must be validated under load, and how many test cycles your workloads need. Your Kubernetes version also matters, because DRA support and its feature state depend on the release you run, so confirm that against the Kubernetes release documentation before planning. Kubernetes minor releases arrive about three times a year, so a project that spans several months may cross a release boundary and need a version decision. Ask for a timeline tied to written milestones rather than a single end date, and confirm which dates depend on your hardware delivery and change approvals.
What does our team need to provide for the engagement?
You need to provide access to the cluster and GPU nodes, the hardware and driver inventory, the workloads that will request GPUs, and named owners who can approve design decisions. Your team should also supply the change process, maintenance windows and any policy rules, such as which namespaces may claim which devices. Security and platform leads should confirm how identity, RBAC and audit logging already work in the cluster, since DRA objects will need the same controls as other resources. Expect to provide a test environment that resembles production hardware where possible. Missing hardware or unclear ownership is one of the most common causes of schedule slips, so confirm these inputs before the written scope is signed.
Can our own platform team build DRA scheduling without a partner?
A capable platform team can build it, but the work needs several skills at once: Kubernetes API and scheduler knowledge, GPU driver and device plugin experience, RBAC and admission design, and test engineering for shared hardware. The hardest parts are usually not the first ResourceClaim, but the device publishing across mixed nodes, the sharing rules that stop one team from starving another, and the upgrade path when driver or Kubernetes versions change. Ask whether your team has run GPU nodes in production and whether anyone has operated the cluster through a minor version upgrade. If those gaps exist, a fixed-scope engagement can cover design and handover while your team takes over operations. DeployOpen implements, customizes, hardens, documents and supports self-hosted platforms in your own infrastructure.
How do we scope a fixed-scope engagement for GPU scheduling?
Start by listing the node classes, accelerator types, workload types and sharing requirements, then write them as in-scope items with acceptance checks. A useful scope names the Kubernetes version, the DeviceClass and ResourceClaim patterns to be delivered, the device sharing model, the test cases, the documentation and the knowledge transfer sessions. It should also state what is out of scope, such as new hardware procurement, driver fixes in vendor code or changes to workloads that your teams own. DeployOpen agrees scope, deliverables and timelines in writing before work starts, and provides a quote that follows from that written scope. Ask any provider to show how each scope item will be verified before you sign.
What should we check in the first design review?
Check that every GPU node class has a documented driver version, a device publishing method and a clear owner. Confirm which DeviceClass objects exist, which teams may create ResourceClaims, and how those permissions map to your RBAC model. Review the sharing model and the expected behavior under contention, including what happens when no device fits a claim. Make sure the design notes the preemption limit: DRA does not provide the preemption behavior some teams expect from device plugins, so critical workloads may need separate capacity or queueing decisions. Finally, confirm how the design will be tested and how it will be upgraded when Kubernetes or the driver changes.
What recurring work comes after the build is finished?
After handover, recurring work includes driver and device updates, Kubernetes minor version upgrades, regression testing of claims and sharing rules, and reviews of new GPU node classes. Kubernetes minor releases come about three times a year, and the project maintains the three most recent minor versions, so an upgrade plan needs a regular cadence. The version skew policy requires control plane components to be upgraded in a set order, and kubelets may lag the API server by up to three minor versions, which affects how GPU node pools are rolled. Ask whether the provider offers retainers for upgrades and continuous testing, and what your team will own between those engagements.
How DRA fits LLM serving on vLLM
GPU allocation for an LLM server has to follow the model's parallelism needs, not just a count of GPUs. vLLM runs on NVIDIA CUDA, AMD ROCm and Intel XPU GPUs, and it splits a model across devices with tensor parallelism inside a node and pipeline parallelism across nodes. Those choices decide how many accelerators a pod needs, whether they must sit on one node, and whether they must share a high-speed interconnect. With Dynamic Resource Allocation, that intent belongs in the DeviceClass and ResourceClaim design, so the scheduler places the vLLM pods on devices that match the model layout instead of placing them on whatever GPUs happen to be free.
The vLLM documentation lists several Kubernetes deployment options, including native manifests, Helm and KubeRay for multi-node runs, along with other operator-based stacks. Each one creates pods and claims in its own way, so the claim template that works in a hand-written manifest may need changes before it works under Helm or a Ray-managed group. Confirm, for your model and your chosen option, that the Kubernetes version, the DRA-capable driver for your accelerators, the device plugin or driver stack and the vLLM image all support the same resource model. Test a single-node deployment with the exact model, quantization and parallelism settings you plan to run before you add nodes.
Treat the multi-node path as a separate design decision. vLLM's security documentation states that communication between nodes in a multi-node deployment is insecure by default, without authorization or encryption, so the nodes must sit on an isolated network. Pair that network decision with your claim layout, since a model split across nodes depends on both the scheduler placing the pods correctly and the traffic between them being protected. Ask your DRA driver vendor and your serving stack owner to document which combinations they have tested together.

