Drivers for GPU node groups in a Managed Kubernetes cluster
You can create Managed Kubernetes clusters on a cloud server with a GPU:
- with предустановленными драйверами — ядерные модули in предустановленных драйверах зависят от архитектуры графического процессора;
- без предустановленных драйверов — вы самостоятельно выбираете and устанавливаете драйверы. Для групп нод with GPU без драйверов недоступно автоматическое масштабирование кластера.
Kernel modules in preinstalled drivers
Kernel modules in preinstalled drivers can be:
- проприетарными — используются in графических процессорах with архитектурой Pascal, Maxwell and Volta;
- открытыми — используются in графических процессорах with архитектурой Turing and всеми последующими поколениями архитектуры.
Among available GPUs, only the NVIDIA® GTX 1080 GPU with Pascal-based architecture uses proprietary kernel modules; the rest use open ones.
Read more about kernel modules in the Kernel Modules section of the NVIDIA® documentation.
Install drivers
Чтобы самостоятельно установить драйвер, используйте приложение NVIDIA® GPU Operator
-
Установите менеджер пакетов Helm версии 3.7.0 and выше.
-
Add the
nvidiarepository to Helm:helm repo add nvidia https://helm.ngc.nvidia.com/nvidia -
Update the
nvidiarepository in Helm:helm repo update -
Install NVIDIA GPU Operator and specify the required GPU driver version:
helm install \--namespace gpu-operator \--create-namespace \--set driver.version=<driver_version> \gpu-operator nvidia/gpu-operatorSpecify
<driver_version>— the NVIDIA® driver version. You can find it in the NVIDIA GPU Driver row of the GPU Operator Component Matrix in the NVIDIA® documentation. -
To verify that the NVIDIA GPU Operator and GPU driver are installed correctly, run a GPU application. For example, the CUDA VectorAdd application for vector addition:
cat << EOF | kubectl create -f -apiVersion: v1kind: Podmetadata:name: cuda-vectoraddspec:restartPolicy: OnFailurecontainers:- name: cuda-vectoraddimage: "nvidia/samples:vectoradd-cuda11.2.1"resources:limits:nvidia.com/gpu: 1EOF -
Make sure the CUDA VectorAdd application has successfully finished — the pod status should be
Completed:kubectl get podsВ ответе у пода
cuda-vectoraddбудет статусCompleted:NAME READY STATUS RESTARTS AGEcuda-vectoradd 0/1 Completed 0 51s