1 #{{ if not .Values.disableLogElasticsearch }}
2 apiVersion: extensions/v1beta1
8 namespace: {{ .Values.nsPrefix }}-log
19 pod.beta.kubernetes.io/init-containers: '[
21 "command": ["sysctl", "-w", "vm.max_map_count=262144"],
28 "fieldPath": "metadata.namespace"
36 "image": "{{ .Values.image.es_bb }}",
37 "imagePullPolicy": "{{ .Values.pullPolicy }}",
44 image: {{ .Values.image.elasticsearch}}
56 - mountPath: /usr/share/elasticsearch/conf/
57 name: elasticsearch-conf
58 - mountPath: /usr/share/elasticsearch/data/
59 name: elasticsearch-data
60 - mountPath: /usr/share/elasticsearch/logs/
61 name: elasticsearch-logs
63 - name: elasticsearch-data
64 persistentVolumeClaim:
65 claimName: elasticsearch-db
66 - name: elasticsearch-logs
68 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/elasticsearch/logs
69 - name: elasticsearch-conf
71 name: elasticsearch-configmap
73 - key: elasticsearch.yml
74 path: elasticsearch.yml
79 name: elasticsearch-configmap
80 namespace: {{ .Values.nsPrefix }}-log
82 {{ (.Files.Glob "resources/elasticsearch/conf/elasticsearch.yml").AsConfig | indent 2 }}