2 # Copyright © 2017 Amdocs, Bell Canada
3 # Modifications Copyright © 2018 AT&T
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.
18 apiVersion: extensions/v1beta1
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 }}
33 app: {{ include "common.name" . }}
34 release: {{ include "common.release" . }}
41 sysctl -w vm.max_map_count=262144
42 mkdir -p /logroot/elasticsearch/logs
43 mkdir -p /logroot/elasticsearch/data
44 chmod -R 777 /logroot/elasticsearch
45 chown -R root:root /logroot
51 fieldPath: metadata.namespace
54 image: {{ .Values.global.busyboxRepository | default .Values.busyboxRepository }}/{{ .Values.busyboxImage }}
55 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
58 - name: {{ include "common.fullname" . }}-logs
61 - name: {{ include "common.name" . }}
62 image: "{{ .Values.global.loggingRepository | default .Values.loggingRepository }}/{{ .Values.image }}"
63 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
65 {{ include "common.resources" . | indent 12 }}
67 - containerPort: {{ .Values.service.internalPort }}
68 name: {{ .Values.service.name }}
69 - containerPort: {{ .Values.service.internalPort2 }}
70 name: {{ .Values.service.name2 }}
71 # disable liveness probe when breakpoints set in debugger
72 # so K8s doesn't restart unresponsive container
73 {{- if eq .Values.liveness.enabled true }}
76 port: {{ .Values.service.internalPort }}
77 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
78 periodSeconds: {{ .Values.liveness.periodSeconds }}
82 port: {{ .Values.service.internalPort2 }}
83 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
84 periodSeconds: {{ .Values.readiness.periodSeconds }}
87 - mountPath: /etc/localtime
90 - mountPath: /usr/share/elasticsearch/config/elasticsearch.yml
91 name: {{ include "common.fullname" . }}-config
92 subPath: elasticsearch.yml
93 - mountPath: /usr/share/elasticsearch/data/
94 name: {{ include "common.fullname" . }}-data
99 - name: {{ include "common.fullname" . }}-config
101 name: {{ include "common.fullname" . }}-configmap
103 - key: elasticsearch.yml
104 path: elasticsearch.yml
105 - name: {{ include "common.fullname" . }}-data
106 persistentVolumeClaim:
107 claimName: {{ include "common.fullname" . }}
108 - name: {{ include "common.fullname" . }}-logs
110 path: {{ .Values.global.persistence.mountPath | default .Values.persistence.mountPath }}/{{ include "common.release" . }}/{{ .Values.persistence.mountSubPathLogs }}
112 - name: "{{ include "common.namespace" . }}-docker-registry-key"