From e4ac3ab799dffbb7b5622251aa7d8411afc23064 Mon Sep 17 00:00:00 2001 From: kyrie <139965836+KubeKyrie@users.noreply.github.com> Date: Fri, 12 Jan 2024 15:28:51 +0800 Subject: [PATCH] Clear http scheme on containerd insecure-registry tls config (#10084) (#10782) Signed-off-by: KubeKyrie Co-authored-by: Louis Tu <92532497+tu1h@users.noreply.github.com> --- roles/container-engine/containerd/templates/config.toml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/container-engine/containerd/templates/config.toml.j2 b/roles/container-engine/containerd/templates/config.toml.j2 index 63fd277549e..e47069ecb3e 100644 --- a/roles/container-engine/containerd/templates/config.toml.j2 +++ b/roles/container-engine/containerd/templates/config.toml.j2 @@ -62,7 +62,7 @@ oom_score = {{ containerd_oom_score }} {% endfor %} {% endif %} {% for addr in containerd_insecure_registries.values() | flatten | unique %} - [plugins."io.containerd.grpc.v1.cri".registry.configs."{{ addr }}".tls] + [plugins."io.containerd.grpc.v1.cri".registry.configs."{{ addr | urlsplit('netloc') }}".tls] insecure_skip_verify = true {% endfor %} {% endif %}