1 #{{ if not .Values.disableLogElasticsearch }}
2 apiVersion: extensions/v1beta1
8 namespace: {{ .Values.nsPrefix }}-log
24 sysctl -w vm.max_map_count=262144
25 mkdir -p /logroot/elasticsearch/logs
26 mkdir -p /logroot/elasticsearch/data
27 chmod -R 777 /logroot/elasticsearch
28 chown -R root:root /logroot
34 fieldPath: metadata.namespace
37 image: {{ .Values.image.es_bb }}
38 imagePullPolicy: {{ .Values.pullPolicy }}
41 - name: elasticsearch-logs
45 image: {{ .Values.image.elasticsearch}}
57 - mountPath: /usr/share/elasticsearch/config/elasticsearch.yml
58 name: elasticsearch-conf
59 subPath: elasticsearch.yml
60 - mountPath: /usr/share/elasticsearch/data/
61 name: elasticsearch-data
62 - mountPath: /usr/share/elasticsearch/logs/
63 name: elasticsearch-logs
65 - name: elasticsearch-data
66 persistentVolumeClaim:
67 claimName: elasticsearch-db
68 - name: elasticsearch-logs
70 path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/log/
71 - name: elasticsearch-conf
73 name: elasticsearch-configmap
75 - key: elasticsearch.yml
76 path: elasticsearch.yml
81 name: elasticsearch-configmap
82 namespace: {{ .Values.nsPrefix }}-log
84 {{ (.Files.Glob "resources/elasticsearch/conf/elasticsearch.yml").AsConfig | indent 2 }}