Skip to content

Commit 65f8a2d

Browse files
authored
chore: add nvidia apt udpates (#15)
1 parent af286d9 commit 65f8a2d

1 file changed

Lines changed: 24 additions & 2 deletions

File tree

‎advanced/game-streaming/nvidia.md‎

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,29 @@ Game streaming on NVIDIA GPUs needs three things on every node that will run a s
66
2. The NVIDIA Container Toolkit (so containerd can expose GPUs into pods).
77
3. The Kubernetes `nvidia` overlay applied to your cluster (registers the device plugin so pods can request `nvidia.com/gpu`).
88

9-
## 1. Install drivers and the container toolkit
9+
## 1. Add the NVIDIA Container Toolkit repository
10+
11+
Before installing the drivers, install the prerequisites and add NVIDIA's apt repository so the container toolkit packages are available.
12+
13+
```bash
14+
sudo apt-get update && sudo apt-get install -y --no-install-recommends \
15+
ca-certificates \
16+
curl \
17+
gnupg2
18+
```
19+
20+
```bash
21+
curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \
22+
&& curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list | \
23+
sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \
24+
sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list
25+
```
26+
27+
```bash
28+
sudo apt-get update
29+
```
30+
31+
## 2. Install drivers and the container toolkit
1032

1133
On Ubuntu / Debian-based hosts:
1234

@@ -33,7 +55,7 @@ nvidia-smi
3355

3456
You should see your GPU(s) listed with the driver version.
3557

36-
## 2. Restart K3s containerd
58+
## 3. Restart K3s containerd
3759

3860
K3s detects the NVIDIA container runtime when it starts and adds the matching runtime entries to its generated containerd config. Restart the K3s agent on each GPU node:
3961

0 commit comments

Comments
 (0)