BorislavG | 66a9a5c | 2017-09-06 15:12:46 +0300 | [diff] [blame] | 1 | apiVersion: v1 |
| 2 | kind: PersistentVolume |
| 3 | metadata: |
BorislavG | abbe9d7 | 2017-09-12 18:00:28 +0300 | [diff] [blame] | 4 | name: "{{ .Values.nsPrefix }}-portal-db" |
BorislavG | 66a9a5c | 2017-09-06 15:12:46 +0300 | [diff] [blame] | 5 | namespace: "{{ .Values.nsPrefix }}-portal" |
| 6 | labels: |
BorislavG | abbe9d7 | 2017-09-12 18:00:28 +0300 | [diff] [blame] | 7 | name: "{{ .Values.nsPrefix }}-portal-db" |
BorislavG | 66a9a5c | 2017-09-06 15:12:46 +0300 | [diff] [blame] | 8 | spec: |
| 9 | capacity: |
| 10 | storage: 2Gi |
| 11 | accessModes: |
| 12 | - ReadWriteMany |
| 13 | persistentVolumeReclaimPolicy: Retain |
| 14 | hostPath: |
| 15 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/mariadb/data |
| 16 | --- |
| 17 | kind: PersistentVolumeClaim |
| 18 | apiVersion: v1 |
| 19 | metadata: |
| 20 | name: portal-db |
| 21 | namespace: "{{ .Values.nsPrefix }}-portal" |
| 22 | spec: |
| 23 | accessModes: |
| 24 | - ReadWriteMany |
| 25 | resources: |
| 26 | requests: |
| 27 | storage: 2Gi |
| 28 | selector: |
| 29 | matchLabels: |
BorislavG | abbe9d7 | 2017-09-12 18:00:28 +0300 | [diff] [blame] | 30 | name: "{{ .Values.nsPrefix }}-portal-db" |