1 # Copyright © 2017 Amdocs, Bell Canada
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 #{{ if not .Values.disableLogElasticsearch }}
16 apiVersion: extensions/v1beta1
21 name: log-elasticsearch
22 namespace: {{ .Values.nsPrefix }}
24 replicas: {{ .Values.elasticsearchReplicas }}
32 name: log-elasticsearch
39 sysctl -w vm.max_map_count=262144
40 mkdir -p /logroot/elasticsearch/logs
41 mkdir -p /logroot/elasticsearch/data
42 chmod -R 777 /logroot/elasticsearch
43 chown -R root:root /logroot
49 fieldPath: metadata.namespace
52 image: {{ .Values.image.es_bb }}
53 imagePullPolicy: {{ .Values.pullPolicy }}
56 - name: elasticsearch-logs
60 image: {{ .Values.image.elasticsearch}}
72 - mountPath: /usr/share/elasticsearch/config/elasticsearch.yml
73 name: elasticsearch-conf
74 subPath: elasticsearch.yml
75 - mountPath: /usr/share/elasticsearch/data/
76 name: elasticsearch-data
77 - mountPath: /usr/share/elasticsearch/logs/
78 name: elasticsearch-logs
80 - name: elasticsearch-data
81 persistentVolumeClaim:
82 claimName: elasticsearch-db
83 - name: elasticsearch-logs
85 path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/log/
86 - name: elasticsearch-conf
88 name: log-elasticsearch-configmap
90 - key: elasticsearch.yml
91 path: elasticsearch.yml
96 name: log-elasticsearch-configmap
97 namespace: {{ .Values.nsPrefix }}
99 {{ (.Files.Glob "resources/elasticsearch/conf/elasticsearch.yml").AsConfig | indent 2 }}