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 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: {{ include "common.release" . }}
24 heritage: {{ .Release.Service }}
26 replicas: {{ .Values.replicaCount }}
30 app: {{ include "common.name" . }}
31 release: {{ include "common.release" . }}
38 sysctl -w vm.max_map_count=262144
39 mkdir -p /logroot/elasticsearch/logs
40 mkdir -p /logroot/elasticsearch/data
41 chmod -R 777 /logroot/elasticsearch
42 chown -R root:root /logroot
48 fieldPath: metadata.namespace
51 image: {{ .Values.global.busyboxRepository | default .Values.busyboxRepository }}/{{ .Values.busyboxImage }}
52 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
55 - name: {{ include "common.fullname" . }}-logs
58 - name: {{ include "common.name" . }}
59 image: "{{ .Values.global.loggingRepository | default .Values.loggingRepository }}/{{ .Values.image }}"
60 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
62 - containerPort: {{ .Values.service.internalPort }}
63 name: {{ .Values.service.name }}
64 - containerPort: {{ .Values.service.internalPort2 }}
65 name: {{ .Values.service.name2 }}
66 # disable liveness probe when breakpoints set in debugger
67 # so K8s doesn't restart unresponsive container
68 {{- if eq .Values.liveness.enabled true }}
71 port: {{ .Values.service.internalPort }}
72 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
73 periodSeconds: {{ .Values.liveness.periodSeconds }}
77 port: {{ .Values.service.internalPort2 }}
78 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
79 periodSeconds: {{ .Values.readiness.periodSeconds }}
82 - mountPath: /etc/localtime
85 - mountPath: /usr/share/elasticsearch/config/elasticsearch.yml
86 name: {{ include "common.fullname" . }}-config
87 subPath: elasticsearch.yml
88 - mountPath: /usr/share/elasticsearch/data/
89 name: {{ include "common.fullname" . }}-data
91 {{ include "common.resources" . | indent 12 }}
92 {{- if .Values.nodeSelector }}
94 {{ toYaml .Values.nodeSelector | indent 10 }}
96 {{- if .Values.affinity }}
98 {{ toYaml .Values.affinity | indent 10 }}
104 - name: {{ include "common.fullname" . }}-config
106 name: {{ include "common.fullname" . }}-configmap
108 - key: elasticsearch.yml
109 path: elasticsearch.yml
110 - name: {{ include "common.fullname" . }}-data
111 {{- if .Values.persistence.enabled }}
112 persistentVolumeClaim:
113 claimName: {{ include "common.fullname" . }}
117 - name: {{ include "common.fullname" . }}-logs
118 {{- if .Values.persistence.enabled }}
119 persistentVolumeClaim:
120 claimName: {{ include "common.fullname" . }}-logs
125 - name: "{{ include "common.namespace" . }}-docker-registry-key"