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 name: {{ include "common.name" . }}
27 mkdir -p /logroot/elasticsearch/es-data
28 chmod -R 777 /logroot/elasticsearch/es-data
29 chown -R root:root /logroot
35 fieldPath: metadata.namespace
38 image: {{ .Values.global.dockerhubRepository | default .Values.dockerhubRepository }}/{{ .Values.global.busyboxImage | default .Values.busyboxImage }}
39 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
42 - name: elasticsearch-data
44 hostname: {{ include "common.name" . }}
46 - name: {{ include "common.name" . }}
47 image: {{ .Values.global.dockerhubRepository | default .Values.dockerhubRepository }}/{{ .Values.image }}
48 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
50 - containerPort: {{ .Values.service.internalPort }}
51 # disable liveness probe when breakpoints set in debugger
52 # so K8s doesn't restart unresponsive container
53 {{- if eq .Values.liveness.enabled true }}
56 port: {{ .Values.service.internalPort }}
57 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
58 periodSeconds: {{ .Values.liveness.periodSeconds }}
62 port: {{ .Values.service.internalPort }}
63 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
64 periodSeconds: {{ .Values.readiness.periodSeconds }}
67 mountPath: /etc/localtime
69 - name: elasticsearch-config
70 subPath: elasticsearch.yml
71 mountPath: /usr/share/elasticsearch/config/elasticsearch.yml
72 - name: elasticsearch-data
73 mountPath: /usr/share/elasticsearch/data
75 {{ toYaml .Values.resources | indent 10 }}
76 {{- if .Values.nodeSelector }}
78 {{ toYaml .Values.nodeSelector | indent 8 }}
80 {{- if .Values.affinity }}
82 {{ toYaml .Values.affinity | indent 8 }}
89 - name: elasticsearch-config
91 name: {{ include "common.fullname" . }}
92 - name: elasticsearch-data
94 path: {{ .Values.persistence.mountPath }}/{{ .Release.Name }}/{{ .Values.persistence.mountSubPath }}
96 - name: "{{ include "common.namespace" . }}-docker-registry-key"