mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-04 21:09:06 +08:00
fb000d0060
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>
55 lines
1.1 KiB
YAML
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
|
|
|
|
|
|
|