mirror of
https://github.com/amkartashov/gf-k8s.git
synced 2026-01-10 17:39:43 +00:00
logging: mongodb: add pvc
This commit is contained in:
parent
87c124d647
commit
9db7df41bb
2 changed files with 23 additions and 0 deletions
11
apps/system/logging/templates/mongodb-volume.yaml
Normal file
11
apps/system/logging/templates/mongodb-volume.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: mongodb
|
||||
spec:
|
||||
capacity:
|
||||
storage: 1Gi
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
hostPath:
|
||||
path: /data/mongodb
|
||||
12
apps/system/logging/templates/mongodb-volumeclaim.yaml
Normal file
12
apps/system/logging/templates/mongodb-volumeclaim.yaml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: mongodb
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
||||
volumeMode: Filesystem
|
||||
volumeName: mongodb
|
||||
Loading…
Reference in a new issue