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 #Example init container for dependency checking
31 # fieldPath: metadata.namespace
32 # image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
33 # imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
34 # name: {{ include "common.name" . }}-readiness
36 - name: {{ include "common.name" . }}
37 image: "{{ .Values.global.repository | default .Values.repository }}/{{ .Values.image }}"
38 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
40 - containerPort: {{ .Values.service.internalPort }}
41 # disable liveness probe when breakpoints set in debugger
42 # so K8s doesn't restart unresponsive container
43 {{- if eq .Values.liveness.enabled true }}
46 port: {{ .Values.service.internalPort }}
47 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
48 periodSeconds: {{ .Values.liveness.periodSeconds }}
52 port: {{ .Values.service.internalPort }}
53 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
54 periodSeconds: {{ .Values.readiness.periodSeconds }}
56 #Example environment variable passed to container
58 # value: {{ .Values.global.debugEnabled | default .Values.debugEnabled | quote }}
60 - mountPath: /etc/localtime
63 #Example config file mount into container
64 # - mountPath: /opt/app/application.properties
65 # name: {{ include "common.name" . }}-config
66 # subPath: application.properties
68 {{ toYaml .Values.resources | indent 12 }}
69 {{- if .Values.nodeSelector }}
71 {{ toYaml .Values.nodeSelector | indent 10 }}
73 {{- if .Values.affinity }}
75 {{ toYaml .Values.affinity | indent 10 }}
82 #Example config file mount into container
83 # - name: {{ include "common.fullname" . }}-config
85 # name: {{ include "common.fullname" . }}-configmap
87 # - key: application.properties
88 # path: application.properties
90 - name: "{{ include "common.namespace" . }}-docker-registry-key"