diff --git a/roles/container-engine/containerd/templates/config.toml.j2 b/roles/container-engine/containerd/templates/config.toml.j2 index c1bda12b8b4..096dea40ef6 100644 --- a/roles/container-engine/containerd/templates/config.toml.j2 +++ b/roles/container-engine/containerd/templates/config.toml.j2 @@ -57,8 +57,8 @@ oom_score = {{ containerd_oom_score }} [plugins."io.containerd.grpc.v1.cri".registry.mirrors."{{ registry }}"] endpoint = ["{{ ([ addr ] | flatten ) | join('","') }}"] {% endfor %} -{% for addr in containerd_insecure_registries.values() | flatten | unique %} - [plugins."io.containerd.grpc.v1.cri".registry.configs."{{ addr }}".tls] +{% for registry in containerd_insecure_registries.keys() %} + [plugins."io.containerd.grpc.v1.cri".registry.configs."{{ registry }}".tls] insecure_skip_verify = true {% endfor %} {% endif %}