2 # Copyright © 2017 Amdocs, Bell Canada
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
17 apiVersion: extensions/v1beta1
20 name: {{ include "common.fullname" . }}
21 namespace: {{ include "common.namespace" . }}
23 app: {{ include "common.name" . }}
24 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
25 release: {{ include "common.release" . }}
26 heritage: {{ .Release.Service }}
28 replicas: {{ .Values.replicaCount }}
32 app: {{ include "common.name" . }}
33 release: {{ include "common.release" . }}
40 sysctl -w vm.max_map_count=262144
41 mkdir -p /logroot/elasticsearch/logs
42 mkdir -p /logroot/elasticsearch/data
43 chmod -R 777 /logroot/elasticsearch
44 chown -R root:root /logroot
50 fieldPath: metadata.namespace
53 image: {{ .Values.global.busyboxRepository | default .Values.busyboxRepository }}/{{ .Values.busyboxImage }}
54 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
57 - name: {{ include "common.fullname" . }}-logs
60 - name: {{ include "common.name" . }}
61 image: "{{ .Values.global.loggingRepository | default .Values.loggingRepository }}/{{ .Values.image }}"
62 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
64 - containerPort: {{ .Values.service.internalPort }}
65 name: {{ .Values.service.name }}
66 - containerPort: {{ .Values.service.internalPort2 }}
67 name: {{ .Values.service.name2 }}
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.internalPort2 }}
80 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
81 periodSeconds: {{ .Values.readiness.periodSeconds }}
84 - mountPath: /etc/localtime
87 - mountPath: /usr/share/elasticsearch/config/elasticsearch.yml
88 name: {{ include "common.fullname" . }}-config
89 subPath: elasticsearch.yml
90 - mountPath: /usr/share/elasticsearch/data/
91 name: {{ include "common.fullname" . }}-data
93 {{ include "common.resources" . | indent 12 }}
94 {{- if .Values.nodeSelector }}
96 {{ toYaml .Values.nodeSelector | indent 10 }}
98 {{- if .Values.affinity }}
100 {{ toYaml .Values.affinity | indent 10 }}
106 - name: {{ include "common.fullname" . }}-config
108 name: {{ include "common.fullname" . }}-configmap
110 - key: elasticsearch.yml
111 path: elasticsearch.yml
112 - name: {{ include "common.fullname" . }}-data
113 {{- if .Values.persistence.enabled }}
114 persistentVolumeClaim:
115 claimName: {{ include "common.fullname" . }}
119 - name: {{ include "common.fullname" . }}-logs
120 {{- if .Values.persistence.enabled }}
121 persistentVolumeClaim:
122 claimName: {{ include "common.fullname" . }}-logs
127 - name: "{{ include "common.namespace" . }}-docker-registry-key"