update containerd/docker registry mirror settings

pull/568/head
gjmzj 2019-05-18 22:44:23 +08:00
parent a625c99b2f
commit be3b7e090a
5 changed files with 27 additions and 17 deletions

View File

@ -3,8 +3,3 @@ STORAGE_DIR: "/var/lib/containerd"
# 基础容器镜像
SANDBOX_IMAGE: "mirrorgooglecontainers/pause-amd64:3.1"
# 国内镜像加速
REG_MIRRORS:
- "https://dockerhub.azk8s.cn"
- "https://docker.mirrors.ustc.edu.cn"

View File

@ -54,3 +54,10 @@
retries: 8
delay: 2
tags: upgrade
- name: 添加 crictl 命令自动补全
lineinfile:
dest: ~/.bashrc
state: present
regexp: 'crictl completion'
line: 'source <(crictl completion)'

View File

@ -51,13 +51,28 @@ oom_score = 0
conf_template = ""
[plugins.cri.registry]
[plugins.cri.registry.mirrors]
# reference from https://www.ilanni.com/?p=14534
[plugins.cri.registry.mirrors."docker.io"]
endpoint = [
{% for SITE in REG_MIRRORS %}
"{{ SITE }}",
{% endfor %}
"https://dockerhub.azk8s.cn",
"https://docker.mirrors.ustc.edu.cn",
"http://hub-mirror.c.163.com"
]
[plugins.cri.registry.mirrors."gcr.io"]
endpoint = [
"https://gcr.azk8s.cn",
"https://gcr.mirrors.ustc.edu.cn"
]
[plugins.cri.registry.mirrors."k8s.gcr.io"]
endpoint = [
"https://gcr.azk8s.cn/google-containers/",
"https://gcr.mirrors.ustc.edu.cn/google-containers/"
]
[plugins.cri.registry.mirrors."quay.io"]
endpoint = [
"https://quay.azk8s.cn",
"https://quay.mirrors.ustc.edu.cn"
]
[plugins.cri.x509_key_pair_streaming]
tls_cert_file = ""
tls_key_file = ""

View File

@ -1,9 +1,3 @@
# 国内镜像加速
REG_MIRRORS:
- "https://dockerhub.azk8s.cn"
- "https://docker.mirrors.ustc.edu.cn"
# docker日志相关
LOG_DRIVER: "json-file"

View File

@ -1,8 +1,7 @@
{
"registry-mirrors": [
{% for SITE in REG_MIRRORS %}
"{{ SITE }}",
{% endfor %}
"https://dockerhub.azk8s.cn",
"https://docker.mirrors.ustc.edu.cn",
"http://hub-mirror.c.163.com"
],
"max-concurrent-downloads": 10,