DRA is a Kubernetes feature that lets you request and share resources among Pods, it provides a flexible way for requesting, configuring, and sharing specialized devices like GPUs. To learn more about DRA in general, good starting points are: Kubernetes docs, Kubernetes blog.
The HAMi DRA Driver brings the support of DRA for HAMi-Core(the in-container GPU resource controller), it might be the first open source DRA Driver for NVIDIA GPU with DRA Consumable Capacity feature enabled.
The list of prerequisites for running the DRA Driver for HAMi-Core is described below
- NVIDIA drivers >= 440
- nvidia-docker version > 2.0
- default runtime configured as nvidia for containerd/docker/cri-o container runtime
- Kubernetes version >= 1.34 with DRA Consumable Capacity feature enabled
- glibc >= 2.17 & glibc < 2.30
- kernel version >= 3.10
Please check the DaemonSet configuration in the demo/yaml directory. We are working on a Helm Chart for this DRA Driver, it will be available in the near future.
apiVersion: resource.k8s.io/v1 kind: ResourceClaim ... spec: devices: requests: - name: double-gpu-0-0 exactly: ... capacity: requests: cores: 30 memory: "4Gi" - name: double-gpu-0-1 exactly: ... capacity: requests: cores: 60 memory: "8Gi"Please refer to the demo.md for more information.
Contributions require a Developer Certificate of Origin (DCO, see CONTRIBUTING.md.
Please open an issue on the GitHub project for questions and for reporting problems. Your feedback is appreciated!
