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 mkdir -p /logroot/elasticsearch/logs
43 mkdir -p /logroot/elasticsearch/data
44 chmod -R 777 /logroot/elasticsearch
45 chown -R 1000:1000 /logroot
51 fieldPath: metadata.namespace
54 image: {{ .Values.global.dockerhubRepository | default .Values.dockerhubRepository }}/{{ .Values.global.busyboxImage | default .Values.busyboxImage }}
55 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
58 - name: elasticsearch-data
60 hostname: {{ include "common.name" . }}
62 - name: {{ include "common.name" . }}
63 image: {{ .Values.global.loggingRepository | default .Values.loggingRepository }}/{{ .Values.image }}
64 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
66 - containerPort: {{ .Values.service.internalPort }}
67 # disable liveness probe when breakpoints set in debugger
68 # so K8s doesn't restart unresponsive container
69 {{- if eq .Values.liveness.enabled true }}
72 port: {{ .Values.service.internalPort }}
73 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
74 periodSeconds: {{ .Values.liveness.periodSeconds }}
78 port: {{ .Values.service.internalPort }}
79 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
80 periodSeconds: {{ .Values.readiness.periodSeconds }}
83 mountPath: /etc/localtime
85 - name: elasticsearch-config
86 subPath: elasticsearch.yml
87 mountPath: /usr/share/elasticsearch/config/elasticsearch.yml
88 - name: elasticsearch-config
90 mountPath: /usr/share/elasticsearch/config/jvm.options
91 - name: elasticsearch-config
92 subPath: log4j2.properties
93 mountPath: /usr/share/elasticsearch/config/log4j2.properties
94 - name: elasticsearch-data
95 mountPath: /usr/share/elasticsearch/data
97 {{ include "common.resources" . | indent 12 }}
98 {{- if .Values.nodeSelector }}
100 {{ toYaml .Values.nodeSelector | indent 8 }}
102 {{- if .Values.affinity }}
104 {{ toYaml .Values.affinity | indent 8 }}
111 - name: elasticsearch-config
113 name: {{ include "common.fullname" . }}
114 - name: elasticsearch-data
116 path: {{ .Values.persistence.mountPath }}/{{ .Release.Name }}/{{ .Values.persistence.mountSubPath }}
118 - name: "{{ include "common.namespace" . }}-docker-registry-key"