mirror of https://github.com/easzlab/kubeasz.git
containerd:增加配置项是否启用容器仓库镜像
parent
6ec6e94dea
commit
d662135334
|
@ -3,3 +3,6 @@ STORAGE_DIR: "/var/lib/containerd"
|
|||
|
||||
# 基础容器镜像
|
||||
SANDBOX_IMAGE: "mirrorgooglecontainers/pause-amd64:3.1"
|
||||
|
||||
# 启用容器仓库镜像
|
||||
ENABLE_MIRROR_REGISTRY: true
|
||||
|
|
|
@ -49,6 +49,7 @@ oom_score = 0
|
|||
bin_dir = "{{ bin_dir }}"
|
||||
conf_dir = "/etc/cni/net.d"
|
||||
conf_template = ""
|
||||
{% if ENABLE_MIRROR_REGISTRY %}
|
||||
[plugins.cri.registry]
|
||||
[plugins.cri.registry.mirrors]
|
||||
# reference from https://www.ilanni.com/?p=14534
|
||||
|
@ -73,6 +74,7 @@ oom_score = 0
|
|||
"https://quay.azk8s.cn",
|
||||
"https://quay.mirrors.ustc.edu.cn"
|
||||
]
|
||||
{% endif %}
|
||||
[plugins.cri.x509_key_pair_streaming]
|
||||
tls_cert_file = ""
|
||||
tls_key_file = ""
|
||||
|
|
Loading…
Reference in New Issue