add crio registry mirror support (#6977)

* add crio registry mirror support

* mdlint fix
This commit is contained in:
Sergey
2020-12-04 00:57:25 +03:00
committed by GitHub
parent d315f73080
commit ed6cef85d8
5 changed files with 66 additions and 2 deletions

View File

@@ -0,0 +1,11 @@
[[registry]]
prefix = "{{ item.prefix }}"
insecure = {{ item.insecure | d('false') | string | lower }}
blocked = {{ item.blocked | d('false') | string | lower }}
location = "{{ item.location | d(item.prefix) }}"
{% for mirror in item.mirrors %}
[[registry.mirror]]
location = "{{ mirror.location }}"
insecure = {{ mirror.insecure | d ('false') | string | lower }}
{% endfor %}