k8s 初使容器将configmap milvusconf 的配置复制到 tmp目录下然后在普通容器里将 tmp 复制到 data目录下请使用yaml写出来
apiVersion: v1 kind: Pod metadata: name: my-pod spec: containers:
- name: container-1
image: my-image
volumeMounts:
- name: config-volume mountPath: /tmp
- name: container-2
image: my-other-image
volumeMounts:
- name: config-volume mountPath: /data volumes:
- name: config-volume
configMap:
name: my-config-map
items:
- key: milvus.conf path: milvus.conf
原文地址: https://www.cveoy.top/t/topic/b1bt 著作权归作者所有。请勿转载和采集!