aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/clamp/templates/clamp-pv-pvc.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/clamp/templates/clamp-pv-pvc.yaml')
-rw-r--r--kubernetes/clamp/templates/clamp-pv-pvc.yaml30
1 files changed, 30 insertions, 0 deletions
diff --git a/kubernetes/clamp/templates/clamp-pv-pvc.yaml b/kubernetes/clamp/templates/clamp-pv-pvc.yaml
new file mode 100644
index 0000000000..5a82752a17
--- /dev/null
+++ b/kubernetes/clamp/templates/clamp-pv-pvc.yaml
@@ -0,0 +1,30 @@
+apiVersion: v1
+kind: PersistentVolume
+metadata:
+ name: "{{ .Values.nsPrefix }}-clamp-db"
+ namespace: "{{ .Values.nsPrefix }}-clamp"
+ labels:
+ name: "{{ .Values.nsPrefix }}-clamp-db"
+spec:
+ capacity:
+ storage: 2Gi
+ accessModes:
+ - ReadWriteMany
+ persistentVolumeReclaimPolicy: Retain
+ hostPath:
+ path: /dockerdata-nfs/{{ .Values.nsPrefix }}/clamp/mariadb/data
+---
+kind: PersistentVolumeClaim
+apiVersion: v1
+metadata:
+ name: clamp-db
+ namespace: "{{ .Values.nsPrefix }}-clamp"
+spec:
+ accessModes:
+ - ReadWriteMany
+ resources:
+ requests:
+ storage: 2Gi
+ selector:
+ matchLabels:
+ name: "{{ .Values.nsPrefix }}-clamp-db"