Skip to content

Commit 911564b

Browse files
committed
Fix containerd runc config error when creating a kind cluster
Signed-off-by: Dr. Jan-Philip Gehrcke <[email protected]>
1 parent 88bd87e commit 911564b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,14 @@ docker exec -it "${KIND_CLUSTER_NAME}-worker" bash -c " \
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)