blob: 11b3dbb4e1fd3a71406f26ad0aa622e34e4c2d64 [file] [log] [blame]
BorislavG66a9a5c2017-09-06 15:12:46 +03001apiVersion: v1
2kind: PersistentVolume
3metadata:
BorislavGabbe9d72017-09-12 18:00:28 +03004 name: "{{ .Values.nsPrefix }}-portal-db"
BorislavG66a9a5c2017-09-06 15:12:46 +03005 namespace: "{{ .Values.nsPrefix }}-portal"
6 labels:
BorislavGabbe9d72017-09-12 18:00:28 +03007 name: "{{ .Values.nsPrefix }}-portal-db"
BorislavG66a9a5c2017-09-06 15:12:46 +03008spec:
9 capacity:
10 storage: 2Gi
11 accessModes:
12 - ReadWriteMany
13 persistentVolumeReclaimPolicy: Retain
14 hostPath:
15 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/mariadb/data
16---
17kind: PersistentVolumeClaim
18apiVersion: v1
19metadata:
20 name: portal-db
21 namespace: "{{ .Values.nsPrefix }}-portal"
22spec:
23 accessModes:
24 - ReadWriteMany
25 resources:
26 requests:
27 storage: 2Gi
28 selector:
29 matchLabels:
BorislavGabbe9d72017-09-12 18:00:28 +030030 name: "{{ .Values.nsPrefix }}-portal-db"