Update to v1.32
This commit is contained in:
@ -15,12 +15,12 @@ spec:
|
||||
priorityClassName: system-node-critical
|
||||
containers:
|
||||
- name: docker-registries-mirror
|
||||
image: mcluseau/docker-registries-mirror
|
||||
image: novit.tech/direktil/docker-registries-mirror
|
||||
command:
|
||||
- ash
|
||||
- -c
|
||||
- |
|
||||
ALL_HOSTS="{{ if .vars.docker_registries_mirror_cache.remote }}{{ .vars.docker_registries_mirror_cache.remote}}{{ end }}{{ range $i, $host := hosts_by_group "master" }} http://{{$host.ip}}:{{ $cache_port }}{{end}}" \
|
||||
ALL_HOSTS="{{ if .vars.docker_registries_mirror_cache.remote }}{{ .vars.docker_registries_mirror_cache.remote}}{{ end }}{{ range $i, $host := hosts_by_group .vars.master_group }} http://{{$host.ip}}:{{ $cache_port }}{{end}}" \
|
||||
CURRENT_HOST="http://{{ .host.ip }}:{{ $cache_port }}" \
|
||||
OTHER_HOSTS="$(echo ${ALL_HOSTS/${CURRENT_HOST}/})" \
|
||||
sh -c '/bin/docker-registries-mirror -addr=:{{ $cache_port }} -cache-mib={{ .vars.docker_registries_mirror_cache.mb }} -peers=${OTHER_HOSTS/ /,}'
|
||||
|
||||
Reference in New Issue
Block a user