2019-09-19 15:50:47 -05:00
|
|
|
apiVersion: apps/v1
|
2018-01-02 16:45:35 -08:00
|
|
|
kind: Deployment
|
|
|
|
|
metadata:
|
2018-06-04 10:39:53 -04:00
|
|
|
name: {{ .Release.Name }}-{{ .Values.controller.name}}
|
2018-01-02 16:45:35 -08:00
|
|
|
labels:
|
2018-06-04 10:39:53 -04:00
|
|
|
app: {{ .Release.Name }}-{{ .Values.controller.name}}
|
2018-01-02 16:45:35 -08:00
|
|
|
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
|
|
|
|
release: {{ .Release.Name }}
|
|
|
|
|
heritage: {{ .Release.Service }}
|
|
|
|
|
spec:
|
2019-09-23 16:49:13 +01:00
|
|
|
replicas: {{ .Values.controller.replicas }}
|
2019-09-19 15:50:47 -05:00
|
|
|
selector:
|
|
|
|
|
matchLabels:
|
|
|
|
|
app: {{ .Release.Name }}-{{ .Values.controller.name}}
|
|
|
|
|
release: {{ .Release.Name }}
|
2018-01-02 16:45:35 -08:00
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
2018-06-04 10:39:53 -04:00
|
|
|
app: {{ .Release.Name }}-{{ .Values.controller.name}}
|
2018-01-02 16:45:35 -08:00
|
|
|
release: {{ .Release.Name }}
|
2019-09-23 16:49:13 +01:00
|
|
|
{{- if .Values.controller.podLabels }}
|
|
|
|
|
{{ toYaml .Values.controller.podLabels | nindent 8}}
|
|
|
|
|
{{- end }}
|
2018-08-16 00:39:27 -07:00
|
|
|
{{- if .Values.controller.podAnnotations }}
|
|
|
|
|
annotations:
|
|
|
|
|
{{ toYaml .Values.controller.podAnnotations | indent 8}}{{- end }}
|
2018-01-02 16:45:35 -08:00
|
|
|
spec:
|
2018-08-16 00:39:27 -07:00
|
|
|
serviceAccountName: {{ .Values.controller.serviceAccount | quote }}
|
2020-09-02 18:09:17 +02:00
|
|
|
{{- if .Values.controller.podSecurityContext }}
|
|
|
|
|
securityContext:
|
|
|
|
|
{{- toYaml .Values.controller.podSecurityContext | nindent 8 }}
|
|
|
|
|
{{- end }}
|
2018-01-02 16:45:35 -08:00
|
|
|
containers:
|
|
|
|
|
- name: controller
|
2019-07-24 16:13:27 -04:00
|
|
|
image: "{{ .Values.images.namespace }}/{{ .Values.images.controller }}:{{ default .Values.images.tag .Values.controller.image.tag }}"
|
2019-05-23 16:32:28 -07:00
|
|
|
imagePullPolicy: {{ .Values.images.pullPolicy }}
|
2018-01-02 16:45:35 -08:00
|
|
|
command: [ "workflow-controller" ]
|
2018-08-16 00:39:27 -07:00
|
|
|
args:
|
|
|
|
|
- "--configmap"
|
|
|
|
|
- "{{ .Release.Name }}-{{ .Values.controller.name}}-configmap"
|
2018-11-29 15:16:59 -08:00
|
|
|
- "--executor-image"
|
2019-07-24 16:13:27 -04:00
|
|
|
- "{{ .Values.images.namespace }}/{{ .Values.images.executor }}:{{ default .Values.images.tag .Values.executor.image.tag }}"
|
2018-08-16 00:39:27 -07:00
|
|
|
- "--loglevel"
|
|
|
|
|
- "{{ .Values.controller.logging.level }}"
|
|
|
|
|
- "--gloglevel"
|
|
|
|
|
- "{{ .Values.controller.logging.globallevel }}"
|
2020-04-30 22:00:07 +01:00
|
|
|
{{- if .Values.singleNamespace }}
|
|
|
|
|
- "--namespaced"
|
|
|
|
|
{{- end }}
|
2020-06-08 22:09:40 +01:00
|
|
|
{{- with .Values.controller.workflowWorkers }}
|
|
|
|
|
- "--workflow-workers"
|
|
|
|
|
- {{ . | quote }}
|
|
|
|
|
{{- end }}
|
2020-11-18 15:53:44 -05:00
|
|
|
{{- with .Values.controller.podWorkers }}
|
2020-06-08 22:09:40 +01:00
|
|
|
- "--pod-workers"
|
|
|
|
|
- {{ . | quote }}
|
|
|
|
|
{{- end }}
|
2018-01-02 16:45:35 -08:00
|
|
|
env:
|
|
|
|
|
- name: ARGO_NAMESPACE
|
|
|
|
|
valueFrom:
|
|
|
|
|
fieldRef:
|
|
|
|
|
apiVersion: v1
|
|
|
|
|
fieldPath: metadata.namespace
|
2020-12-11 12:54:59 -08:00
|
|
|
{{- with .Values.controller.extraEnv }}
|
|
|
|
|
{{ toYaml . | nindent 10 }}
|
|
|
|
|
{{- end }}
|
2019-08-16 12:36:37 -04:00
|
|
|
resources:
|
|
|
|
|
{{- toYaml .Values.controller.resources | nindent 12 }}
|
2019-09-24 16:52:33 -04:00
|
|
|
{{- if .Values.controller.metricsConfig.enabled }}
|
|
|
|
|
ports:
|
|
|
|
|
- containerPort: 8080
|
|
|
|
|
{{- end }}
|
2020-08-30 19:10:09 +02:00
|
|
|
{{- with .Values.images.pullSecrets }}
|
|
|
|
|
imagePullSecrets:
|
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
|
{{- end }}
|
2020-02-13 12:12:30 +08:00
|
|
|
{{- with .Values.controller.nodeSelector }}
|
|
|
|
|
nodeSelector:
|
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
|
{{- end }}
|
|
|
|
|
{{- with .Values.controller.tolerations }}
|
|
|
|
|
tolerations:
|
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
|
{{- end }}
|
|
|
|
|
{{- with .Values.controller.affinity }}
|
|
|
|
|
affinity:
|
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
|
{{- end }}
|
2020-10-14 00:48:07 +02:00
|
|
|
{{- if .Values.controller.priorityClassName }}
|
|
|
|
|
priorityClassName: {{ .Values.controller.priorityClassName }}
|
|
|
|
|
{{- end }}
|