Break docker pull rate limit

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>
This commit is contained in:
quicksilver 2021-03-04 18:43:50 +08:00 committed by yefu.chen
parent 0e16a786e7
commit fb000d0060

View File

@ -21,11 +21,34 @@ spec:
volumeMounts:
- name: docker-graph-storage
mountPath: /var/lib/docker
- name: docker-daemon
mountPath: /etc/docker
initContainers:
- name: docker-daemon-config
image: registry.zilliz.com/library/dind-compose:v0.1
command: ["sh", "-c"]
args:
- |
cat > "/etc/docker/daemon.json" <<EOF
{
"registry-mirrors": [
"https://hub-mirror.c.163.com",
"https://mirror.baidubce.com" ]
}
EOF
volumeMounts:
- name: docker-daemon
mountPath: /etc/docker
volumes:
- name: docker-graph-storage
emptyDir: {}
- name: docker-daemon
emptyDir: {}
tolerations:
- key: dedicated
operator: Equal
value: milvus
effect: NoSchedule