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