1 apiVersion: extensions/v1beta1
4 name: {{ include "common.fullname" . }}
5 namespace: {{ include "common.namespace" . }}
7 app: {{ include "common.name" . }}
8 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
9 release: {{ .Release.Name }}
10 heritage: {{ .Release.Service }}
12 replicas: {{ .Values.replicaCount }}
15 app: {{ include "common.name" . }}
19 app: {{ include "common.name" . }}
20 release: {{ .Release.Name }}
21 name: {{ include "common.name" . }}
28 mkdir -p /logroot/elasticsearch/es-data
29 chmod -R 777 /logroot/elasticsearch/es-data
30 chown -R root:root /logroot
36 fieldPath: metadata.namespace
39 image: {{ .Values.global.dockerhubRepository | default .Values.dockerhubRepository }}/{{ .Values.global.busyboxImage | default .Values.busyboxImage }}
40 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
43 - name: elasticsearch-data
45 hostname: {{ include "common.name" . }}
47 - name: {{ include "common.name" . }}
48 image: {{ .Values.global.dockerhubRepository | default .Values.dockerhubRepository }}/{{ .Values.image }}
49 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
51 - containerPort: {{ .Values.service.internalPort }}
52 # disable liveness probe when breakpoints set in debugger
53 # so K8s doesn't restart unresponsive container
54 {{- if eq .Values.liveness.enabled true }}
57 port: {{ .Values.service.internalPort }}
58 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
59 periodSeconds: {{ .Values.liveness.periodSeconds }}
63 port: {{ .Values.service.internalPort }}
64 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
65 periodSeconds: {{ .Values.readiness.periodSeconds }}
68 mountPath: /etc/localtime
70 - name: elasticsearch-config
71 subPath: elasticsearch.yml
72 mountPath: /usr/share/elasticsearch/config/elasticsearch.yml
73 - name: elasticsearch-data
74 mountPath: /usr/share/elasticsearch/data
76 {{ toYaml .Values.resources | indent 10 }}
77 {{- if .Values.nodeSelector }}
79 {{ toYaml .Values.nodeSelector | indent 8 }}
81 {{- if .Values.affinity }}
83 {{ toYaml .Values.affinity | indent 8 }}
90 - name: elasticsearch-config
92 name: {{ include "common.fullname" . }}
93 - name: elasticsearch-data
95 path: {{ .Values.persistence.mountPath }}/{{ .Release.Name }}/{{ .Values.persistence.mountSubPath }}
97 - name: "{{ include "common.namespace" . }}-docker-registry-key"