Commit a625ac14 by tingweiwang

增加config-harbor-secret volume挂载卷。挂载到容器内部的/root/.docker/config.json用于core--worker pod推送镜像到私有仓库

1 parent a9907f1c
...@@ -29,6 +29,9 @@ spec: ...@@ -29,6 +29,9 @@ spec:
- name: config - name: config
mountPath: /adl/bin/conf/app.yaml mountPath: /adl/bin/conf/app.yaml
subPath: app.yaml subPath: app.yaml
- name: config-harbor-secret
mountPath: /root/.docker/config.json
subPath: config.json
command: ["core--worker"] command: ["core--worker"]
ports: ports:
- containerPort: 8080 - containerPort: 8080
...@@ -56,3 +59,7 @@ spec: ...@@ -56,3 +59,7 @@ spec:
- name: config - name: config
configMap: configMap:
name: cfg-autodl-core name: cfg-autodl-core
- name: config-harbor-secret
secret:
secretName: harbor-secret
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!