2 # Copyright © 2018 Amdocs, Bell Canada, AT&T
3 # Modifications Copyright © 2020 Orange
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
21 name: {{ include "common.fullname" . }}
22 namespace: {{ include "common.namespace" . }}
24 app: {{ include "common.name" . }}
25 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
26 release: {{ include "common.release" . }}
27 heritage: {{ .Release.Service }}
29 replicas: {{ .Values.replicaCount }}
32 app: {{ include "common.name" . }}
36 app: {{ include "common.name" . }}
37 release: {{ include "common.release" . }}
38 name: {{ include "common.name" . }}
40 hostname: {{ include "common.name" . }}
46 sysctl -w vm.max_map_count=262144
47 mkdir -p /logroot/elasticsearch/logs
48 mkdir -p /logroot/elasticsearch/data
49 chmod -R 777 /logroot/elasticsearch
50 chown -R 1000:1000 /logroot
56 fieldPath: metadata.namespace
59 image: {{ include "repositoryGenerator.image.busybox" . }}
60 imagePullPolicy: {{ .Values.pullPolicy | default .Values.global.pullPolicy }}
63 - name: elasticsearch-data
66 - name: {{ include "common.name" . }}
67 image: {{ include "repositoryGenerator.elasticRepository" . }}/{{ .Values.image }}
68 imagePullPolicy: {{ .Values.pullPolicy | default .Values.global.pullPolicy }}
70 - containerPort: {{ .Values.service.internalPort }}
71 - containerPort: {{ .Values.service.internalPort2 }}
72 # disable liveness probe when breakpoints set in debugger
73 # so K8s doesn't restart unresponsive container
74 {{- if eq .Values.liveness.enabled true }}
77 port: {{ .Values.service.internalPort }}
78 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
79 periodSeconds: {{ .Values.liveness.periodSeconds }}
83 port: {{ .Values.service.internalPort }}
84 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
85 periodSeconds: {{ .Values.readiness.periodSeconds }}
88 mountPath: /etc/localtime
90 - name: elasticsearch-config
91 subPath: elasticsearch.yml
92 mountPath: /usr/share/elasticsearch/config/elasticsearch.yml
93 - name: elasticsearch-config
95 mountPath: /usr/share/elasticsearch/config/jvm.options
96 - name: elasticsearch-config
97 subPath: log4j2.properties
98 mountPath: /usr/share/elasticsearch/config/log4j2.properties
99 - name: elasticsearch-data
100 mountPath: /usr/share/elasticsearch/data
102 {{ include "common.resources" . | indent 12 }}
103 {{- if .Values.nodeSelector }}
105 {{ toYaml .Values.nodeSelector | indent 8 }}
107 {{- if .Values.affinity }}
109 {{ toYaml .Values.affinity | indent 8 }}
115 - name: elasticsearch-config
117 name: {{ include "common.fullname" . }}-es-config
118 - name: elasticsearch-data
119 persistentVolumeClaim:
120 claimName: {{ include "common.fullname" . }}-data
121 restartPolicy: {{ .Values.restartPolicy }}
123 - name: "{{ include "common.namespace" . }}-docker-registry-key"