Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame^] | 1 | apiVersion: v1 |
| 2 | kind: PersistentVolume |
| 3 | metadata: |
| 4 | name: elasticsearch-db |
| 5 | namespace: "{{ .Values.nsPrefix }}-log" |
| 6 | labels: |
| 7 | name: elasticsearch-db |
| 8 | spec: |
| 9 | capacity: |
| 10 | storage: 2Gi |
| 11 | accessModes: |
| 12 | - ReadWriteMany |
| 13 | persistentVolumeReclaimPolicy: Retain |
| 14 | hostPath: |
| 15 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/elasticsearch/data |
| 16 | --- |
| 17 | kind: PersistentVolumeClaim |
| 18 | apiVersion: v1 |
| 19 | metadata: |
| 20 | name: elasticsearch-db |
| 21 | namespace: "{{ .Values.nsPrefix }}-log" |
| 22 | spec: |
| 23 | accessModes: |
| 24 | - ReadWriteMany |
| 25 | resources: |
| 26 | requests: |
| 27 | storage: 2Gi |
| 28 | selector: |
| 29 | matchLabels: |
| 30 | name: elasticsearch-db |