blob: d0176a5462928376beb8a44515b472f42dd3f84f [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableLogElasticsearch }}
Itay Hasside2da86d2017-08-24 12:54:42 +00002apiVersion: v1
3kind: PersistentVolume
4metadata:
BorislavG8bfc6cf2018-02-27 15:04:26 +00005 name: {{ .Values.nsPrefix }}-elasticsearch-db
6 namespace: "{{ .Values.nsPrefix }}"
Itay Hasside2da86d2017-08-24 12:54:42 +00007 labels:
BorislavG8bfc6cf2018-02-27 15:04:26 +00008 name: {{ .Values.nsPrefix }}-elasticsearch-db
Itay Hasside2da86d2017-08-24 12:54:42 +00009spec:
10 capacity:
11 storage: 2Gi
12 accessModes:
13 - ReadWriteMany
14 persistentVolumeReclaimPolicy: Retain
15 hostPath:
kerenj81c063d2018-02-25 09:10:45 +000016 path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/log/elasticsearch/data
Itay Hasside2da86d2017-08-24 12:54:42 +000017---
18kind: PersistentVolumeClaim
19apiVersion: v1
20metadata:
21 name: elasticsearch-db
BorislavG8bfc6cf2018-02-27 15:04:26 +000022 namespace: "{{ .Values.nsPrefix }}"
Itay Hasside2da86d2017-08-24 12:54:42 +000023spec:
24 accessModes:
25 - ReadWriteMany
26 resources:
27 requests:
28 storage: 2Gi
29 selector:
30 matchLabels:
BorislavG8bfc6cf2018-02-27 15:04:26 +000031 name: {{ .Values.nsPrefix }}-elasticsearch-db
kerenj81c063d2018-02-25 09:10:45 +000032#{{ end }}