Skip to content

Commit 1b59639

Browse files
committed
containerd: add support for device-ownership to nvidia
1 parent 3fa4a50 commit 1b59639

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/containerd/containerd-config-toml_k8s_nvidia_containerd_sock

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
container-registry = "v1"
33
container-runtime = "v1"
44
kubernetes = "v1"
5-
std = { version = "v1", helpers = ["join_array"]}
5+
std = { version = "v1", helpers = ["join_array", "default"]}
66
+++
77
version = 2
88
root = "/var/lib/containerd"
@@ -19,6 +19,7 @@ disabled_plugins = [
1919
address = "/run/containerd/containerd.sock"
2020

2121
[plugins."io.containerd.grpc.v1.cri"]
22+
device_ownership_from_security_context = {{default false settings.kubernetes.device-ownership-from-security-context}}
2223
enable_selinux = true
2324
# Pause container image is specified here, shares the same image as kubelet's pod-infra-container-image
2425
sandbox_image = "localhost/kubernetes/pause:0.1.0"

0 commit comments

Comments
 (0)