milvus/build/ci/jenkins/pod/docker-pod.yaml
quicksilver fb000d0060 Break docker pull rate limit
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>
2021-03-04 18:43:50 +08:00

55 lines
1.1 KiB
YAML

apiVersion: v1
kind: Pod
metadata:
labels:
app: publish
componet: docker
spec:
containers:
- name: publish-images
image: registry.zilliz.com/library/dind-compose:v0.1
imagePullPolicy: Always
securityContext:
privileged: true
resources:
limits:
memory: "8Gi"
cpu: "2"
requests:
memory: "2Gi"
cpu: "1"
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