Commit 470727be by tingweiwang

增加pvc逻辑卷挂载

1 parent 50098a5e
...@@ -22,6 +22,12 @@ spec: ...@@ -22,6 +22,12 @@ spec:
image: DOCKER_REGISTRY/kpl-backend-v1:latest image: DOCKER_REGISTRY/kpl-backend-v1:latest
imagePullPolicy: Always imagePullPolicy: Always
volumeMounts: volumeMounts:
- mountPath: /mnt/kpl-pvc
name: kpl-volume
- mountPath: /mnt/kpl-pvc2
name: kpl-volume2
- mountPath: /mnt/kpl-pvc3
name: kpl-volume3
- mountPath: /data/kpl-log - mountPath: /data/kpl-log
name: kpl-log name: kpl-log
- name: config - name: config
...@@ -45,6 +51,18 @@ spec: ...@@ -45,6 +51,18 @@ spec:
cpu: "1000m" cpu: "1000m"
memory: "1024Mi" memory: "1024Mi"
volumes: volumes:
- name: kpl-volume
persistentVolumeClaim:
claimName: kpl-pvc
readOnly: false
- name: kpl-volume2
persistentVolumeClaim:
claimName: kpl-pvc2
readOnly: false
- name: kpl-volume3
persistentVolumeClaim:
claimName: kpl-pvc3
readOnly: false
- name: kpl-log - name: kpl-log
hostPath: hostPath:
path: /data/kpl-log path: /data/kpl-log
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!