Kubernetes v1.34: DRA Consumab... Note

Kubernetes v1.34: DRA Consumable Capacity

Dynamic Resource Allocation (DRA) in Kubernetes manages scarce resources like devices for Pods, expanding beyond simple device allocation. DRA enables requests for specific devices with custom configurations, including resource sharing. This blog details DRA's new consumable capacity feature in Kubernetes 1.34, crucial for finer-grained device sharing. Consumable capacity allows sharing a device across multiple ResourceClaims or DeviceRequests, even across namespaces. The scheduler now supports allocating portions of device resources, managing overall capacity. A new DistinctAttribute constraint prevents a single device from being allocated multiple times within the same claim. This feature requires enabling the DRAConsumableCapacity feature gate in various Kubernetes components. Developers can permit multiple allocations by setting AllowMultipleAllocations, and can define policies for device capacity requests. Users can request device portions through ResourceClaims, and device status can include dynamic information like IP addresses. This enhancement supports bandwidth-aware networking and multi-tenant device sharing, improving scheduling and resource control. The blog encourages experimentation and feedback to further refine DRA.