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 }}
19 sidecar.istio.io/inject: "{{.Values.istioSidecar}}"
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 # disable liveness probe when breakpoints set in debugger
28 # so K8s doesn't restart unresponsive container
29 {{- if eq .Values.liveness.enabled true }}
32 port: {{ .Values.service.internalPort }}
33 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
34 periodSeconds: {{ .Values.liveness.periodSeconds }}
38 port: {{ .Values.service.internalPort }}
39 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
40 periodSeconds: {{ .Values.readiness.periodSeconds }}
43 - mountPath: /etc/localtime
47 {{ toYaml .Values.resources | indent 12 }}
48 {{- if .Values.nodeSelector }}
50 {{ toYaml .Values.nodeSelector | indent 10 }}
52 {{- if .Values.affinity }}
54 {{ toYaml .Values.affinity | indent 10 }}
61 - name: "{{ include "common.namespace" . }}-docker-registry-key"