后端服务pod挂载持久化

This commit is contained in:
chenzhihang 2024-09-18 14:34:10 +08:00
parent 223f6ba92b
commit 1673d9480f
1 changed files with 8 additions and 0 deletions

View File

@ -18,6 +18,14 @@ spec:
image: 172.20.32.187/ci4s/managent:20240401
ports:
- containerPort: 9213
volumeMounts:
- name: resource
mountPath: /home/resource/
volumes:
- name: resource
hostPath: # 指定宿主机目录为 /data/nginx/log
path: /home/resource/
type: DirectoryOrCreate
---
apiVersion: v1