From 0d1ddecd5b4785857e1eae54a7ed362eed597d9b Mon Sep 17 00:00:00 2001 From: Sergey Bondarev Date: Sat, 16 Jan 2021 19:38:28 +0300 Subject: [PATCH] add registry mirror to inventory sample --- inventory/prod/group_vars/all/containerd.yml | 5 ++++- inventory/prod/group_vars/all/crio.yml | 12 ++++++++++++ inventory/prod/group_vars/all/docker.yml | 6 +++--- inventory/s000/group_vars/all/containerd.yml | 5 ++++- inventory/s000/group_vars/all/crio.yml | 12 ++++++++++++ inventory/s000/group_vars/all/docker.yml | 6 +++--- 6 files changed, 38 insertions(+), 8 deletions(-) create mode 100644 inventory/prod/group_vars/all/crio.yml create mode 100644 inventory/s000/group_vars/all/crio.yml diff --git a/inventory/prod/group_vars/all/containerd.yml b/inventory/prod/group_vars/all/containerd.yml index 2fc66b636d4..3e7e33ef050 100644 --- a/inventory/prod/group_vars/all/containerd.yml +++ b/inventory/prod/group_vars/all/containerd.yml @@ -8,7 +8,10 @@ # debug: # level: "" # registries: -# "docker.io": "https://registry-1.docker.io" +# "docker.io": +# - "http://172.20.100.52:5000" +# - "https://mirror.gcr.io" +# - "https://registry-1.docker.io" # max_container_log_line_size: -1 # metrics: # address: "" diff --git a/inventory/prod/group_vars/all/crio.yml b/inventory/prod/group_vars/all/crio.yml new file mode 100644 index 00000000000..596d5dbe0bc --- /dev/null +++ b/inventory/prod/group_vars/all/crio.yml @@ -0,0 +1,12 @@ +--- + +#crio_registries_mirrors: +# - prefix: docker.io +# insecure: false +# blocked: false +# location: registry-1.docker.io +# mirrors: +# - location: 172.20.100.52:5000 +# insecure: true +# - location: mirror.gcr.io +# insecure: false diff --git a/inventory/prod/group_vars/all/docker.yml b/inventory/prod/group_vars/all/docker.yml index 873b6093f55..c808b979a79 100644 --- a/inventory/prod/group_vars/all/docker.yml +++ b/inventory/prod/group_vars/all/docker.yml @@ -38,9 +38,9 @@ docker_rpm_keepcache: 0 # - 172.19.16.11 ## Add other registry,example China registry mirror. -# docker_registry_mirrors: -# - https://registry.docker-cn.com -# - https://mirror.aliyuncs.com +docker_registry_mirrors: + - http://172.20.100.52:5000 + - https://mirror.gcr.io ## If non-empty will override default system MounFlags value. ## This option takes a mount propagation flag: shared, slave diff --git a/inventory/s000/group_vars/all/containerd.yml b/inventory/s000/group_vars/all/containerd.yml index 2fc66b636d4..3e7e33ef050 100644 --- a/inventory/s000/group_vars/all/containerd.yml +++ b/inventory/s000/group_vars/all/containerd.yml @@ -8,7 +8,10 @@ # debug: # level: "" # registries: -# "docker.io": "https://registry-1.docker.io" +# "docker.io": +# - "http://172.20.100.52:5000" +# - "https://mirror.gcr.io" +# - "https://registry-1.docker.io" # max_container_log_line_size: -1 # metrics: # address: "" diff --git a/inventory/s000/group_vars/all/crio.yml b/inventory/s000/group_vars/all/crio.yml new file mode 100644 index 00000000000..a98f7c6e704 --- /dev/null +++ b/inventory/s000/group_vars/all/crio.yml @@ -0,0 +1,12 @@ +--- + +# crio_registries_mirrors: +# - prefix: docker.io +# insecure: false +# blocked: false +# location: registry-1.docker.io +# mirrors: +# - location: 172.20.100.52:5000 +# insecure: true +# - location: mirror.gcr.io +# insecure: false diff --git a/inventory/s000/group_vars/all/docker.yml b/inventory/s000/group_vars/all/docker.yml index 873b6093f55..c808b979a79 100644 --- a/inventory/s000/group_vars/all/docker.yml +++ b/inventory/s000/group_vars/all/docker.yml @@ -38,9 +38,9 @@ docker_rpm_keepcache: 0 # - 172.19.16.11 ## Add other registry,example China registry mirror. -# docker_registry_mirrors: -# - https://registry.docker-cn.com -# - https://mirror.aliyuncs.com +docker_registry_mirrors: + - http://172.20.100.52:5000 + - https://mirror.gcr.io ## If non-empty will override default system MounFlags value. ## This option takes a mount propagation flag: shared, slave