Skip to content

Commit

Permalink
Clear http scheme on containerd insecure-registry tls config (#10084)
Browse files Browse the repository at this point in the history
Signed-off-by: tu1h <lihai.tu@daocloud.io>
  • Loading branch information
tu1h authored May 16, 2023
1 parent 9cd7d66 commit 55e581b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/container-engine/containerd/templates/config.toml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit 55e581b

Please sign in to comment.