2020-02-12 18:57:25 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
2021-05-31 16:06:26 +00:00
|
|
|
name: {{ include "argo-rollouts.fullname" . }}
|
2020-02-12 18:57:25 +00:00
|
|
|
labels:
|
|
|
|
app.kubernetes.io/component: {{ .Values.controller.component }}
|
2021-05-31 16:06:26 +00:00
|
|
|
{{- include "argo-rollouts.labels" . | nindent 4 }}
|
2020-02-12 18:57:25 +00:00
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
2021-08-16 15:27:24 +00:00
|
|
|
app.kubernetes.io/component: {{ .Values.controller.component }}
|
2021-05-31 16:06:26 +00:00
|
|
|
{{- include "argo-rollouts.selectorLabels" . | nindent 6 }}
|
|
|
|
strategy:
|
|
|
|
type: Recreate
|
2021-12-20 19:13:24 +00:00
|
|
|
replicas: {{ .Values.controller.replicas }}
|
2020-02-12 18:57:25 +00:00
|
|
|
template:
|
|
|
|
metadata:
|
2021-05-31 16:06:26 +00:00
|
|
|
{{- with .Values.podAnnotations }}
|
2020-12-06 17:37:53 +00:00
|
|
|
annotations:
|
2021-05-31 16:06:26 +00:00
|
|
|
{{- toYaml . | nindent 8 }}
|
2020-12-06 17:37:53 +00:00
|
|
|
{{- end }}
|
2020-02-12 18:57:25 +00:00
|
|
|
labels:
|
2021-05-31 16:06:26 +00:00
|
|
|
{{- include "argo-rollouts.selectorLabels" . | nindent 8 }}
|
2021-08-16 15:27:24 +00:00
|
|
|
app.kubernetes.io/component: {{ .Values.controller.component }}
|
2021-05-31 16:06:26 +00:00
|
|
|
{{- range $key, $value := .Values.podLabels }}
|
|
|
|
{{ $key }}: {{ $value | quote }}
|
|
|
|
{{- end }}
|
2020-02-12 18:57:25 +00:00
|
|
|
spec:
|
2020-03-25 16:29:44 +00:00
|
|
|
{{- with .Values.imagePullSecrets }}
|
|
|
|
imagePullSecrets:
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
2021-05-31 16:06:26 +00:00
|
|
|
serviceAccountName: {{ include "argo-rollouts.serviceAccountName" . }}
|
2020-02-12 18:57:25 +00:00
|
|
|
containers:
|
2021-05-31 16:06:26 +00:00
|
|
|
- image: "{{ .Values.controller.image.registry }}/{{ .Values.controller.image.repository }}:{{ default .Chart.AppVersion .Values.controller.image.tag }}"
|
2021-01-21 17:48:29 +00:00
|
|
|
args:
|
2021-10-18 12:29:19 +00:00
|
|
|
{{- if not .Values.clusterInstall }}
|
2021-01-21 17:48:29 +00:00
|
|
|
- --namespaced
|
|
|
|
{{- end }}
|
2021-12-20 19:13:24 +00:00
|
|
|
{{- if gt .Values.controller.replicas 1.0 }}
|
|
|
|
- --leader-elect
|
|
|
|
{{- end }}
|
2021-10-18 12:29:19 +00:00
|
|
|
{{- with .Values.controller.extraArgs }}
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
2020-02-12 18:57:25 +00:00
|
|
|
imagePullPolicy: {{ .Values.controller.image.pullPolicy }}
|
2021-05-31 16:06:26 +00:00
|
|
|
name: argo-rollouts
|
|
|
|
ports:
|
|
|
|
- containerPort: 8090
|
|
|
|
name: metrics
|
2021-08-10 06:39:38 +00:00
|
|
|
livenessProbe:
|
|
|
|
{{- toYaml .Values.controller.livenessProbe | nindent 10 }}
|
|
|
|
readinessProbe:
|
|
|
|
{{- toYaml .Values.controller.readinessProbe | nindent 10 }}
|
2021-05-07 17:29:36 +00:00
|
|
|
securityContext:
|
2021-05-31 16:06:26 +00:00
|
|
|
{{- toYaml .Values.containerSecurityContext | nindent 10 }}
|
2021-05-07 17:29:36 +00:00
|
|
|
resources:
|
2020-07-12 23:52:28 +00:00
|
|
|
{{- toYaml .Values.controller.resources | nindent 10 }}
|
2021-11-09 20:49:48 +00:00
|
|
|
{{- with .Values.controller.extraContainers }}
|
|
|
|
{{- toYaml . | nindent 6 }}
|
|
|
|
{{- end }}
|
2020-07-12 23:52:28 +00:00
|
|
|
{{- if .Values.controller.nodeSelector }}
|
|
|
|
nodeSelector:
|
|
|
|
{{- toYaml .Values.controller.nodeSelector | nindent 8 }}
|
|
|
|
{{- end }}
|
2021-05-31 16:06:26 +00:00
|
|
|
securityContext:
|
|
|
|
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
2020-07-12 23:52:28 +00:00
|
|
|
{{- if .Values.controller.tolerations }}
|
|
|
|
tolerations:
|
|
|
|
{{- toYaml .Values.controller.tolerations | nindent 8 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- if .Values.controller.affinity }}
|
|
|
|
affinity:
|
|
|
|
{{- toYaml .Values.controller.affinity | nindent 8 }}
|
|
|
|
{{- end }}
|