1 # Copyright © 2018 Amdocs, Bell Canada, AT&T
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 apiVersion: extensions/v1beta1
18 name: {{ include "common.fullname" . }}
19 namespace: {{ include "common.namespace" . }}
21 app: {{ include "common.name" . }}
22 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
23 release: {{ .Release.Name }}
24 heritage: {{ .Release.Service }}
26 replicas: {{ .Values.replicaCount }}
29 app: {{ include "common.name" . }}
33 app: {{ include "common.name" . }}
34 release: {{ .Release.Name }}
35 name: {{ include "common.name" . }}
42 sysctl -w vm.max_map_count=262144
43 mkdir -p /logroot/elasticsearch/logs
44 mkdir -p /logroot/elasticsearch/data
45 chmod -R 777 /logroot/elasticsearch
46 chown -R 1000:1000 /logroot
52 fieldPath: metadata.namespace
55 image: {{ .Values.global.dockerhubRepository | default .Values.dockerhubRepository }}/{{ .Values.global.busyboxImage | default .Values.busyboxImage }}
56 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
59 - name: elasticsearch-data
61 hostname: {{ include "common.name" . }}
63 - name: {{ include "common.name" . }}
64 image: {{ .Values.global.loggingRepository | default .Values.loggingRepository }}/{{ .Values.image }}
65 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
67 - containerPort: {{ .Values.service.internalPort }}
68 # disable liveness probe when breakpoints set in debugger
69 # so K8s doesn't restart unresponsive container
70 {{- if eq .Values.liveness.enabled true }}
73 port: {{ .Values.service.internalPort }}
74 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
75 periodSeconds: {{ .Values.liveness.periodSeconds }}
79 port: {{ .Values.service.internalPort }}
80 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
81 periodSeconds: {{ .Values.readiness.periodSeconds }}
84 mountPath: /etc/localtime
86 - name: elasticsearch-config
87 subPath: elasticsearch.yml
88 mountPath: /usr/share/elasticsearch/config/elasticsearch.yml
89 - name: elasticsearch-config
91 mountPath: /usr/share/elasticsearch/config/jvm.options
92 - name: elasticsearch-config
93 subPath: log4j2.properties
94 mountPath: /usr/share/elasticsearch/config/log4j2.properties
95 - name: elasticsearch-data
96 mountPath: /usr/share/elasticsearch/data
98 {{ include "common.resources" . }}
99 {{- if .Values.nodeSelector }}
101 {{ toYaml .Values.nodeSelector | indent 8 }}
103 {{- if .Values.affinity }}
105 {{ toYaml .Values.affinity | indent 8 }}
112 - name: elasticsearch-config
114 name: {{ include "common.fullname" . }}
115 - name: elasticsearch-data
117 path: {{ .Values.persistence.mountPath }}/{{ .Release.Name }}/{{ .Values.persistence.mountSubPath }}
119 - name: "{{ include "common.namespace" . }}-docker-registry-key"