kind: Deployment apiVersion: apps/v1 metadata: name: {{ .Release.Name }}-form labels: app.kubernetes.io/name: {{ .Release.Name }}-form helm.sh/chart: '{{ template "approval-process.chart" . }}' app.kubernetes.io/managed-by: "{{ .Release.Service }}" app.kubernetes.io/managed-by: "{{ .Release.Service }}" app: {{ .Release.Name }}-form spec: replicas: 1 selector: matchLabels: app: {{ .Release.Name }}-form template: metadata: labels: app.kubernetes.io/name: {{ .Release.Name }}-form helm.sh/chart: '{{ template "approval-process.chart" . }}' app.kubernetes.io/managed-by: "{{ .Release.Service }}" app.kubernetes.io/managed-by: "{{ .Release.Service }}" app: {{ .Release.Name }}-form spec: volumes: - name: localtime hostPath: path: /etc/localtime containers: - name: {{ .Release.Name }}-form {{- if contains "/" .Values.approvalProcessForm.image.repository }} image: "{{ .Values.approvalProcessForm.image.repository }}:{{ .Values.approvalProcessForm.image.tag }}{{ include "beagle.imageArch" . }}" {{- else }} image: "{{ .Values.global.hub }}/{{ .Values.approvalProcessForm.image.repository }}:{{ .Values.approvalProcessForm.image.tag }}{{ include "beagle.imageArch" . }}" {{- end }} imagePullPolicy: "{{ .Values.global.imagePullPolicy }}" resources: {{- toYaml .Values.approvalProcessForm.resources | nindent 12 }} ports: - containerPort: 8080 name: http protocol: TCP startupProbe: failureThreshold: 3 httpGet: path: /approval-form/health port: 8080 scheme: HTTP initialDelaySeconds: 15 periodSeconds: 15 successThreshold: 1 timeoutSeconds: 1 livenessProbe: failureThreshold: 3 httpGet: path: /approval-form/health port: 8080 scheme: HTTP initialDelaySeconds: 15 periodSeconds: 15 successThreshold: 1 timeoutSeconds: 1 volumeMounts: - name: localtime mountPath: /etc/localtime envFrom: - configMapRef: name: {{ .Release.Name }}-form-config