Commit e55402c1 authored by liaozan's avatar liaozan 🏀

Add volume folder for pod to save persistent data

parent 6a9e19c8
...@@ -62,3 +62,11 @@ spec: ...@@ -62,3 +62,11 @@ spec:
path: /actuator/health/readiness path: /actuator/health/readiness
port: 1024 port: 1024
periodSeconds: 10 periodSeconds: 10
volumeMounts:
- name: ${APP_NAME}-volume
mountPath: /
volumes:
name: ${APP_NAME}-volume
hostPath:
path: /data/share/pod/data/${APP_NAME}
type: DirectoryOrCreate
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment