Skip to content

Commit e0f58b7

Browse files
committed
containerd-2.0: fix max-concurrent-downloads config placement
Signed-off-by: Kyle Sessions <[email protected]>
1 parent 06e0008 commit e0f58b7

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

packages/containerd-2.0/containerd-config-toml_k8s_containerd_sock

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,12 @@ imports = ["/etc/containerd/config.d/*.toml"]
1919
[grpc]
2020
address = "/run/containerd/containerd.sock"
2121

22-
# Pause container image is specified here, shares the same image as kubelet's pod-infra-container-image
2322
[plugins."io.containerd.cri.v1.images"]
23+
{{#if settings.container-runtime.max-concurrent-downloads}}
24+
max_concurrent_downloads = {{settings.container-runtime.max-concurrent-downloads}}
25+
{{/if}}
26+
27+
# Pause container image is specified here, shares the same image as kubelet's pod-infra-container-image
2428
[plugins."io.containerd.cri.v1.images".pinned_images]
2529
sandbox = "localhost/kubernetes/pause:0.1.0"
2630

@@ -30,9 +34,6 @@ enable_selinux = true
3034
{{#if settings.container-runtime.max-container-log-line-size}}
3135
max_container_log_line_size = {{settings.container-runtime.max-container-log-line-size}}
3236
{{/if}}
33-
{{#if settings.container-runtime.max-concurrent-downloads}}
34-
max_concurrent_downloads = {{settings.container-runtime.max-concurrent-downloads}}
35-
{{/if}}
3637
{{#if settings.container-runtime.enable-unprivileged-ports}}
3738
enable_unprivileged_ports = {{settings.container-runtime.enable-unprivileged-ports}}
3839
{{/if}}

packages/containerd-2.0/containerd-config-toml_k8s_nvidia_containerd_sock

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,12 @@ imports = ["/etc/containerd/config.d/*.toml"]
1919
[grpc]
2020
address = "/run/containerd/containerd.sock"
2121

22-
# Pause container image is specified here, shares the same image as kubelet's pod-infra-container-image
2322
[plugins."io.containerd.cri.v1.images"]
23+
{{#if settings.container-runtime.max-concurrent-downloads}}
24+
max_concurrent_downloads = {{settings.container-runtime.max-concurrent-downloads}}
25+
{{/if}}
26+
27+
# Pause container image is specified here, shares the same image as kubelet's pod-infra-container-image
2428
[plugins."io.containerd.cri.v1.images".pinned_images]
2529
sandbox = "localhost/kubernetes/pause:0.1.0"
2630

@@ -30,9 +34,6 @@ enable_selinux = true
3034
{{#if settings.container-runtime.max-container-log-line-size}}
3135
max_container_log_line_size = {{settings.container-runtime.max-container-log-line-size}}
3236
{{/if}}
33-
{{#if settings.container-runtime.max-concurrent-downloads}}
34-
max_concurrent_downloads = {{settings.container-runtime.max-concurrent-downloads}}
35-
{{/if}}
3637
{{#if settings.container-runtime.enable-unprivileged-ports}}
3738
enable_unprivileged_ports = {{settings.container-runtime.enable-unprivileged-ports}}
3839
{{/if}}

0 commit comments

Comments
 (0)