Skip to content

Commit

Permalink
Add nvidia containerd runtime to the rke2-startup.sh
Browse files Browse the repository at this point in the history
Maybe should consider adding warning that it will not run on a cluster that does not have nvidia drivers on it already

Co-authored-by: Justin Law <[email protected]>
  • Loading branch information
vanakema and justinthelaw committed Jul 15, 2024
1 parent 155eba3 commit 6d23f2a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/uds-rke2/scripts/rke2-startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,16 @@ version = 2
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
SystemdCgroup = true
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.nvidia]
privileged_without_host_devices = false
runtime_engine = ""
runtime_root = ""
runtime_type = "io.containerd.runc.v2"
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.nvidia.options]
BinaryName = "/usr/bin/nvidia-container-runtime"
Runtime = "/usr/bin/nvidia-container-runtime"
EOF

# Start RKE2
Expand Down

0 comments on commit 6d23f2a

Please sign in to comment.