This repository contains NVIDIA's implementation of the Kubernetes device plugin alpha feature from version 1.8.
It requires nvidia-docker 2.0 with our runtime configured as the default runtime.
Option 1, to avoid cloning the repository:
docker build -t nvidia-device-plugin:1.8.1 https://github.com/NVIDIA/k8s-device-plugin.git
Option 2, if you want to modify the code:
git clone https://github.com/NVIDIA/k8s-device-plugin.git && cd k8s-device-plugin
docker build -t nvidia-device-plugin:1.8.1 .
docker run -it -v /var/lib/kubelet/device-plugins:/var/lib/kubelet/device-plugins nvidia-device-plugin:1.8.1
kubectl create -f nvidia-device-plugin.yml
C_INCLUDE_PATH=/usr/local/cuda/include LIBRARY_PATH=/usr/local/cuda/lib64 go build
./k8s-device-plugin
- You can report a bug by filing a new issue
- You can contribute by opening a pull request