Skip to content

Commit 4a3238d

Browse files
authored
Merge pull request #1145 from jgehrcke/jp/containerd-config
scripts/create-kind-cluster: use nvidia-ctk stable channel & `--config-source=command` cli arg
2 parents 9ae728c + 911564b commit 4a3238d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

demo/clusters/kind/scripts/create-kind-cluster.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,21 @@ docker exec -it "${KIND_CLUSTER_NAME}-worker" bash -c "apt-get update && apt-get
3939

4040
docker exec -it "${KIND_CLUSTER_NAME}-worker" bash -c " \
4141
curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \
42-
&& curl -s -L https://nvidia.github.io/libnvidia-container/experimental/deb/nvidia-container-toolkit.list | \
42+
&& curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list | \
4343
sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \
4444
tee /etc/apt/sources.list.d/nvidia-container-toolkit.list \
4545
&& \
4646
apt-get update \
4747
&& apt-get install -y nvidia-container-toolkit"
4848

49-
# We configure the NVIDIA Container Runtime to only trigger on the nvidia.cdi.k8s.io annotation and enable CDI in containerd.
49+
# We configure the NVIDIA Container Runtime to only trigger on the nvidia.cdi.k8s.io
50+
# annotation and enable CDI in containerd. --config-source=command obtains the
51+
# containerd base config dynamically from containerd itself, via
52+
# `containerd config dump`. See https://github.com/NVIDIA/nvidia-container-toolkit/pull/686
5053
docker exec -it "${KIND_CLUSTER_NAME}-worker" bash -c "\
5154
nvidia-ctk config --set nvidia-container-runtime.modes.cdi.annotation-prefixes=nvidia.cdi.k8s.io/ \
5255
&& \
53-
nvidia-ctk runtime configure --runtime=containerd --cdi.enabled \
56+
nvidia-ctk runtime configure --runtime=containerd --cdi.enabled --config-source=command \
5457
&& \
5558
systemctl restart containerd"
5659

0 commit comments

Comments
 (0)