Created
April 17, 2023 20:31
-
-
Save bgulla/5ea0e7fd310b5db4f9b66036d1cdb3d3 to your computer and use it in GitHub Desktop.
RKE2/K3s Nvidia GPU-Operator installation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
prep: | |
helm repo add nvidia https://helm.ngc.nvidia.com/nvidia \ | |
&& helm repo update | |
install: | |
helm install --wait nvidiagpu \ | |
-n gpu-operator --create-namespace \ | |
--set toolkit.env[0].name=CONTAINERD_CONFIG \ | |
--set toolkit.env[0].value=/var/lib/rancher/k3s/agent/etc/containerd/config.toml \ | |
--set toolkit.env[1].name=CONTAINERD_SOCKET \ | |
--set toolkit.env[1].value=/run/k3s/containerd/containerd.sock \ | |
--set toolkit.env[2].name=CONTAINERD_RUNTIME_CLASS \ | |
--set toolkit.env[2].value=nvidia \ | |
--set toolkit.env[3].name=CONTAINERD_SET_AS_DEFAULT \ | |
--set-string toolkit.env[3].value=true \ | |
nvidia/gpu-operator | |
delete: | |
helm uninstall -n gpu-operator nvidiagpu | |
cluster-info: | |
kubectl get nodes -o wide |
I want to run it on Jetson platform (arm), there is no nvidia-smi
, as I know. But anyway - thanks for the precise command.
probably you could try nvcr.io/nvidia/l4t-cuda:12.2.2-devel-arm64-ubuntu22.04
or images from https://catalog.ngc.nvidia.com/orgs/nvidia/containers/l4t-cuda/tags
note: I am particularly sure and didn't tried it out.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you can either run
kubectl run nvidia-smi --restart=Never --rm -i --tty --image nvidia/cuda:11.0.3-base-ubuntu20.04 -- nvidia-smi
orfind the driver pod
kubectl get pod -n gpu-operator | grep driver
and runkubectl exec -it nvidia-driver-daemonset-qxtlz -n gpu-operator -- nvidia-smi