Device Plugins 2.0: How to Build a Driver for Dynamic Resource Allocation
May 01, 2023
40 min
Free
kubernetes
device-plugins
dynamic-resource-allocation
resource-scheduling
gpu-sharing
mig-devices
custom-controllers
kubelet
cdi
resource-drivers
nvidia
intel
Description
This talk explores Device Plugins 2.0 and how to build a driver for Dynamic Resource Allocation (DRA) in Kubernetes. DRA offers an alternative to the traditional countable interface for resource requests, enabling more advanced features like controlled GPU sharing, multiple GPU models per node, and dynamic allocation of MIG devices. The presentation covers the architecture of DRA resource drivers, including centralized controllers and node-local kubelet plugins, and demonstrates how to implement the necessary logic using helper libraries. It also touches on new and upcoming features for managing multiple resource claims and custom resource drivers.