2021-05-21 12:19:05 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: {{ template "argo-workflows.controller.fullname" . }}
|
|
|
|
labels:
|
|
|
|
{{- include "argo-workflows.labels" (dict "context" . "component" .Values.controller.name "name" .Values.controller.name) | nindent 4 }}
|
|
|
|
app.kubernetes.io/version: {{ default .Chart.AppVersion .Values.controller.image.tag | quote }}
|
|
|
|
spec:
|
|
|
|
replicas: {{ .Values.controller.replicas }}
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
{{- include "argo-workflows.selectorLabels" (dict "context" . "name" .Values.controller.name) | nindent 6 }}
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
{{- include "argo-workflows.labels" (dict "context" . "component" .Values.controller.name "name" .Values.controller.name) | nindent 8 }}
|
|
|
|
app.kubernetes.io/version: {{ default .Chart.AppVersion .Values.controller.image.tag | quote }}
|
|
|
|
{{- with.Values.controller.podLabels }}
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.controller.podAnnotations }}
|
|
|
|
annotations:
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
|
|
|
spec:
|
|
|
|
serviceAccountName: {{ template "argo-workflows.controllerServiceAccountName" . }}
|
|
|
|
{{- with .Values.controller.podSecurityContext }}
|
|
|
|
securityContext:
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
|
|
|
containers:
|
|
|
|
- name: controller
|
|
|
|
image: "{{ .Values.controller.image.registry }}/{{ .Values.controller.image.repository }}:{{ .Values.controller.image.tag | default .Chart.AppVersion }}"
|
|
|
|
imagePullPolicy: {{ .Values.images.pullPolicy }}
|
|
|
|
command: [ "workflow-controller" ]
|
|
|
|
args:
|
|
|
|
- "--configmap"
|
|
|
|
- "{{ template "argo-workflows.controller.fullname" . }}-configmap"
|
|
|
|
- "--executor-image"
|
|
|
|
- "{{ .Values.executor.image.registry }}/{{ .Values.executor.image.repository }}:{{ .Values.executor.image.tag | default .Chart.AppVersion }}"
|
|
|
|
- "--loglevel"
|
|
|
|
- "{{ .Values.controller.logging.level }}"
|
|
|
|
- "--gloglevel"
|
|
|
|
- "{{ .Values.controller.logging.globallevel }}"
|
|
|
|
{{- if .Values.singleNamespace }}
|
|
|
|
- "--namespaced"
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.controller.workflowWorkers }}
|
|
|
|
- "--workflow-workers"
|
|
|
|
- {{ . | quote }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.controller.podWorkers }}
|
|
|
|
- "--pod-workers"
|
|
|
|
- {{ . | quote }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.controller.extraArgs }}
|
|
|
|
{{- toYaml . | nindent 10 }}
|
|
|
|
{{- end }}
|
|
|
|
securityContext:
|
|
|
|
{{- toYaml .Values.controller.securityContext | nindent 12 }}
|
|
|
|
env:
|
|
|
|
- name: ARGO_NAMESPACE
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
apiVersion: v1
|
|
|
|
fieldPath: metadata.namespace
|
|
|
|
- name: LEADER_ELECTION_IDENTITY
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
apiVersion: v1
|
|
|
|
fieldPath: metadata.name
|
|
|
|
{{- with .Values.controller.extraEnv }}
|
2021-05-31 16:31:44 +00:00
|
|
|
{{- toYaml . | nindent 12 }}
|
2021-05-21 12:19:05 +00:00
|
|
|
{{- end }}
|
|
|
|
resources:
|
|
|
|
{{- toYaml .Values.controller.resources | nindent 12 }}
|
|
|
|
ports:
|
2021-09-17 19:51:13 +00:00
|
|
|
- name: {{ .Values.controller.metricsConfig.portName }}
|
2021-05-21 12:19:05 +00:00
|
|
|
containerPort: {{ .Values.controller.metricsConfig.port }}
|
2021-06-25 06:15:43 +00:00
|
|
|
- containerPort: 6060
|
|
|
|
livenessProbe: {{ .Values.controller.livenessProbe | toYaml | nindent 12 }}
|
2021-08-11 07:32:11 +00:00
|
|
|
{{- with .Values.controller.extraContainers }}
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
2021-05-21 12:19:05 +00:00
|
|
|
{{- with .Values.images.pullSecrets }}
|
|
|
|
imagePullSecrets:
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- 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 }}
|
|
|
|
{{- with .Values.controller.priorityClassName }}
|
|
|
|
priorityClassName: {{ . }}
|
|
|
|
{{- end }}
|