|
@@ -0,0 +1,28 @@
|
|
|
+apiVersion: v1
|
|
|
+kind: PersistentVolume
|
|
|
+metadata:
|
|
|
+ name: datastorage-pv
|
|
|
+ labels:
|
|
|
+ type: local
|
|
|
+spec:
|
|
|
+ storageClassName: manual
|
|
|
+ capacity:
|
|
|
+ storage: {{ .Values.global.dataStorage.storageSize }}
|
|
|
+ accessModes:
|
|
|
+ - ReadWriteMany
|
|
|
+ persistentVolumeReclaimPolicy: Retain
|
|
|
+ hostPath:
|
|
|
+ path: {{ printf "%s/hpcc-data" $.Values.global.dataStorage.hostMountPath | quote }}
|
|
|
+ type: DirectoryOrCreate
|
|
|
+---
|
|
|
+apiVersion: v1
|
|
|
+kind: PersistentVolumeClaim
|
|
|
+metadata:
|
|
|
+ name: datastorage-pv-claim
|
|
|
+spec:
|
|
|
+ storageClassName: manual
|
|
|
+ accessModes:
|
|
|
+ - ReadWriteMany
|
|
|
+ resources:
|
|
|
+ requests:
|
|
|
+ storage: {{ .Values.global.dataStorage.storageSize }}
|