Skip to content

Commit

Permalink
add registry mirror to inventory sample
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckySB committed Jan 16, 2021
1 parent a84818a commit 0d1ddec
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 8 deletions.
5 changes: 4 additions & 1 deletion inventory/prod/group_vars/all/containerd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: ""
Expand Down
12 changes: 12 additions & 0 deletions inventory/prod/group_vars/all/crio.yml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 3 additions & 3 deletions inventory/prod/group_vars/all/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion inventory/s000/group_vars/all/containerd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: ""
Expand Down
12 changes: 12 additions & 0 deletions inventory/s000/group_vars/all/crio.yml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 3 additions & 3 deletions inventory/s000/group_vars/all/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0d1ddec

Please sign in to comment.