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 }}
18 name: {{ include "common.name" . }}
22 - name: {{ include "common.name" . }}
23 image: {{ .Values.global.dockerhubRepository | default .Values.dockerhubRepository }}/{{ .Values.image }}
24 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
26 - containerPort: {{ .Values.service.internalPort }}
27 - containerPort: {{ .Values.service.internalPort2 }}
28 - containerPort: {{ .Values.service.internalPort3 }}
29 - containerPort: {{ .Values.service.internalPort4 }}
30 - containerPort: {{ .Values.service.internalPort5 }}
31 - containerPort: {{ .Values.service.internalPort6 }}
32 - containerPort: {{ .Values.service.internalPort7 }}
33 # disable liveness probe when breakpoints set in debugger
34 # so K8s doesn't restart unresponsive container
35 {{- if eq .Values.liveness.enabled true }}
38 port: {{ .Values.service.internalPort }}
39 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
40 periodSeconds: {{ .Values.liveness.periodSeconds }}
44 port: {{ .Values.service.internalPort }}
45 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
46 periodSeconds: {{ .Values.readiness.periodSeconds }}
51 mountPath: /etc/localtime
54 {{ toYaml .Values.resources | indent 10 }}
55 {{- if .Values.nodeSelector }}
57 {{ toYaml .Values.nodeSelector | indent 8 }}
59 {{- if .Values.affinity }}
61 {{ toYaml .Values.affinity | indent 8 }}
67 path: {{ .Values.persistence.mountPath }}/{{ .Release.Name }}/{{ .Values.persistence.mountSubPath }}
72 - name: "{{ include "common.namespace" . }}-docker-registry-key"