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 }}
16 app: {{ include "common.name" . }}
17 release: {{ .Release.Name }}
20 - name: {{ include "common.name" . }}-logs-init
25 mkdir -p /ubuntu-init/ASDC/ASDC-ES/
26 chmod -R 777 /ubuntu-init/
27 image: "{{ .Values.global.ubuntuInitRepository }}/{{ .Values.global.ubuntuInitImage }}"
28 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
30 - name: {{ include "common.fullname" . }}-logs
31 mountPath: /ubuntu-init/
33 - name: {{ include "common.name" . }}
34 image: "{{ .Values.global.repository | default .Values.repository }}/{{ .Values.image }}"
35 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
37 - containerPort: {{ .Values.service.internalPort }}
38 - containerPort: {{ .Values.service.internalPort2 }}
39 # disable liveness probe when breakpoints set in debugger
40 # so K8s doesn't restart unresponsive container
41 {{- if eq .Values.liveness.enabled true }}
44 port: {{ .Values.service.internalPort }}
45 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
46 periodSeconds: {{ .Values.liveness.periodSeconds }}
50 path: "_cluster/health?wait_for_status=yellow&timeout=120s"
51 port: {{ .Values.service.internalPort }}
53 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
54 periodSeconds: {{ .Values.readiness.periodSeconds }}
57 value: {{ .Values.global.env.name }}
61 fieldPath: status.podIP
63 value: {{ .Values.config.elasticHeapSize }}
65 - name: {{ include "common.fullname" . }}-environments
66 mountPath: /root/chef-solo/environments/
67 - name: {{ include "common.fullname" . }}-localtime
68 mountPath: /etc/localtime
70 - name: {{ include "common.fullname" . }}-logs
71 mountPath: /var/lib/jetty/logs
72 - name: {{ include "common.fullname" . }}-data
73 mountPath: /usr/share/elasticsearch/data/
75 {{ toYaml .Values.resources | indent 12 }}
76 {{- if .Values.nodeSelector }}
78 {{ toYaml .Values.nodeSelector | indent 10 }}
80 {{- if .Values.affinity }}
82 {{ toYaml .Values.affinity | indent 10 }}
85 - name: {{ include "common.fullname" . }}-localtime
88 {{- if .Values.persistence.enabled }}
89 - name: {{ include "common.fullname" . }}-data
90 persistentVolumeClaim:
91 claimName: {{ include "common.fullname" . }}
95 - name: {{ include "common.fullname" . }}-environments
97 name: {{ .Release.Name }}-sdc-environments-configmap
99 - name: {{ include "common.fullname" . }}-logs
102 - name: "{{ include "common.namespace" . }}-docker-registry-key"