32 lines
767 B
YAML
32 lines
767 B
YAML
|
|
# One volume for both of tududi's data paths, mounted twice with subPath.
|
||
|
|
# Declaring the same PVC as two separate volume entries in one pod wedges
|
||
|
|
# kubelet's volume setup (pod stuck in Init with no events) -- that is what
|
||
|
|
# happened with limesurvey; do not split this into db-pv and uploads-pv.
|
||
|
|
apiVersion: v1
|
||
|
|
kind: PersistentVolume
|
||
|
|
metadata:
|
||
|
|
name: tududi-pv
|
||
|
|
spec:
|
||
|
|
capacity:
|
||
|
|
storage: 5Gi
|
||
|
|
accessModes:
|
||
|
|
- ReadWriteOnce
|
||
|
|
persistentVolumeReclaimPolicy: Retain
|
||
|
|
volumeMode: Filesystem
|
||
|
|
hostPath:
|
||
|
|
path: /mnt/gvolume0/tududi
|
||
|
|
---
|
||
|
|
apiVersion: v1
|
||
|
|
kind: PersistentVolumeClaim
|
||
|
|
metadata:
|
||
|
|
name: tududi
|
||
|
|
namespace: tududi
|
||
|
|
spec:
|
||
|
|
accessModes:
|
||
|
|
- ReadWriteOnce
|
||
|
|
resources:
|
||
|
|
requests:
|
||
|
|
storage: 5Gi
|
||
|
|
storageClassName: ""
|
||
|
|
volumeName: tududi-pv
|