Skip to content

Commit

Permalink
Enable CDI in containerd configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Davanum Srinivas <[email protected]>
  • Loading branch information
dims committed Dec 26, 2024
1 parent 3b667df commit 567ee65
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nodeadm/internal/api/merge_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ discard_unpacked_layers = true
[plugins."io.containerd.grpc.v1.cri"]
sandbox_image = "{{.SandboxImage}}"
enable_cdi = true
[plugins."io.containerd.grpc.v1.cri".registry]
config_path = "/etc/containerd/certs.d:/etc/docker/certs.d"
Expand Down Expand Up @@ -195,6 +196,7 @@ discard_unpacked_layers = false
[plugins."io.containerd.grpc.v1.cri"]
sandbox_image = "{{.SandboxImage}}"
enable_cdi = true
[plugins."io.containerd.grpc.v1.cri".registry]
config_path = "/etc/containerd/certs.d:/etc/docker/certs.d"
Expand Down
1 change: 1 addition & 0 deletions nodeadm/internal/containerd/config.template.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ discard_unpacked_layers = true

[plugins."io.containerd.grpc.v1.cri"]
sandbox_image = "{{.SandboxImage}}"
enable_cdi = true

[plugins."io.containerd.grpc.v1.cri".registry]
config_path = "/etc/containerd/certs.d:/etc/docker/certs.d"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ address = '/run/foo/foo.sock'

[plugins]
[plugins.'io.containerd.grpc.v1.cri']
enable_cdi = true
sandbox_image = 'localhost/kubernetes/pause'

[plugins.'io.containerd.grpc.v1.cri'.cni]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ address = '/run/foo/foo.sock'

[plugins]
[plugins.'io.containerd.grpc.v1.cri']
enable_cdi = true
sandbox_image = 'localhost/kubernetes/pause'

[plugins.'io.containerd.grpc.v1.cri'.cni]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ address = '/run/foo/foo.sock'

[plugins]
[plugins.'io.containerd.grpc.v1.cri']
enable_cdi = true
sandbox_image = 'localhost/kubernetes/pause'

[plugins.'io.containerd.grpc.v1.cri'.cni]
Expand Down
1 change: 1 addition & 0 deletions templates/al2/runtime/containerd-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ discard_unpacked_layers = true

[plugins."io.containerd.grpc.v1.cri"]
sandbox_image = "SANDBOX_IMAGE"
enable_cdi = true

[plugins."io.containerd.grpc.v1.cri".registry]
config_path = "/etc/containerd/certs.d:/etc/docker/certs.d"
Expand Down

0 comments on commit 567ee65

Please sign in to comment.