2020-02-12 18:57:25 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
2023-05-23 07:07:34 +00:00
|
|
|
{{- with (mergeOverwrite (deepCopy .Values.global.deploymentAnnotations) .Values.controller.deploymentAnnotations) }}
|
|
|
|
annotations:
|
|
|
|
{{- range $key, $value := . }}
|
|
|
|
{{ $key }}: {{ $value | quote }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
2021-05-31 16:06:26 +00:00
|
|
|
name: {{ include "argo-rollouts.fullname" . }}
|
2023-04-13 18:16:20 +00:00
|
|
|
namespace: {{ .Release.Namespace | quote }}
|
2020-02-12 18:57:25 +00:00
|
|
|
labels:
|
2024-03-23 20:47:03 +00:00
|
|
|
{{- range $key, $value := (mergeOverwrite (deepCopy .Values.global.deploymentLabels) .Values.controller.deploymentLabels) }}
|
|
|
|
{{ $key }}: {{ $value | quote }}
|
|
|
|
{{- end }}
|
2020-02-12 18:57:25 +00:00
|
|
|
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:
|
2024-06-14 09:00:28 +00:00
|
|
|
type: RollingUpdate
|
2021-12-20 19:13:24 +00:00
|
|
|
replicas: {{ .Values.controller.replicas }}
|
2024-05-23 07:29:52 +00:00
|
|
|
revisionHistoryLimit: {{ .Values.global.revisionHistoryLimit }}
|
2020-02-12 18:57:25 +00:00
|
|
|
template:
|
|
|
|
metadata:
|
2023-03-29 09:16:34 +00:00
|
|
|
{{- with (mergeOverwrite (deepCopy .Values.podAnnotations) .Values.controller.podAnnotations) }}
|
2020-12-06 17:37:53 +00:00
|
|
|
annotations:
|
2023-03-29 09:16:34 +00:00
|
|
|
{{- range $key, $value := . }}
|
|
|
|
{{ $key }}: {{ $value | quote }}
|
|
|
|
{{- end }}
|
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 }}
|
2024-05-06 00:24:13 +00:00
|
|
|
{{- range $key, $value := (mergeOverwrite (deepCopy .Values.podLabels) .Values.controller.podLabels) }}
|
2021-05-31 16:06:26 +00:00
|
|
|
{{ $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:
|
2023-05-20 15:39:17 +00:00
|
|
|
- --healthzPort={{ .Values.controller.containerPorts.healthz }}
|
|
|
|
- --metricsport={{ .Values.controller.containerPorts.metrics }}
|
2023-12-14 08:39:20 +00:00
|
|
|
- "--loglevel={{ .Values.controller.logging.level }}"
|
|
|
|
- "--logformat={{ .Values.controller.logging.format }}"
|
|
|
|
- "--kloglevel={{ .Values.controller.logging.kloglevel }}"
|
2021-10-18 12:29:19 +00:00
|
|
|
{{- if not .Values.clusterInstall }}
|
2021-01-21 17:48:29 +00:00
|
|
|
- --namespaced
|
|
|
|
{{- end }}
|
2023-10-24 12:39:37 +00:00
|
|
|
{{- if gt (int .Values.controller.replicas) 1 }}
|
2021-12-20 19:13:24 +00:00
|
|
|
- --leader-elect
|
|
|
|
{{- end }}
|
2021-10-18 12:29:19 +00:00
|
|
|
{{- with .Values.controller.extraArgs }}
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
2022-06-17 08:12:52 +00:00
|
|
|
{{- with .Values.controller.extraEnv }}
|
|
|
|
env:
|
|
|
|
{{- 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:
|
2023-05-20 15:39:17 +00:00
|
|
|
- containerPort: {{ .Values.controller.containerPorts.metrics }}
|
2021-05-31 16:06:26 +00:00
|
|
|
name: metrics
|
2023-05-20 15:39:17 +00:00
|
|
|
- containerPort: {{ .Values.controller.containerPorts.healthz }}
|
2022-03-23 21:11:46 +00:00
|
|
|
name: healthz
|
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 }}
|
2023-04-13 23:58:48 +00:00
|
|
|
volumeMounts:
|
2024-06-26 09:10:00 +00:00
|
|
|
- name: plugin-bin
|
|
|
|
mountPath: /home/argo-rollouts/plugin-bin
|
|
|
|
- name: tmp
|
|
|
|
mountPath: /tmp
|
|
|
|
{{- with .Values.controller.volumeMounts }}
|
2023-04-13 23:58:48 +00:00
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
2021-11-09 20:49:48 +00:00
|
|
|
{{- with .Values.controller.extraContainers }}
|
|
|
|
{{- toYaml . | nindent 6 }}
|
|
|
|
{{- end }}
|
2022-08-26 16:40:01 +00:00
|
|
|
{{- with .Values.controller.initContainers }}
|
|
|
|
initContainers:
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
{{- 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 }}
|
2023-01-18 02:38:50 +00:00
|
|
|
{{- with .Values.controller.topologySpreadConstraints }}
|
|
|
|
topologySpreadConstraints:
|
|
|
|
{{- range $constraint := . }}
|
|
|
|
- {{ toYaml $constraint | nindent 8 | trim }}
|
|
|
|
{{- if not $constraint.labelSelector }}
|
|
|
|
labelSelector:
|
|
|
|
matchLabels:
|
|
|
|
app.kubernetes.io/component: {{ $.Values.controller.component }}
|
|
|
|
{{- include "argo-rollouts.selectorLabels" $ | nindent 12 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
2022-04-05 11:38:02 +00:00
|
|
|
{{- with .Values.controller.priorityClassName }}
|
|
|
|
priorityClassName: {{ . }}
|
|
|
|
{{- end }}
|
2023-04-13 23:58:48 +00:00
|
|
|
volumes:
|
2024-06-26 09:10:00 +00:00
|
|
|
- name: plugin-bin
|
|
|
|
emptyDir: {}
|
|
|
|
- name: tmp
|
|
|
|
emptyDir: {}
|
|
|
|
{{- with .Values.controller.volumes }}
|
2023-04-13 23:58:48 +00:00
|
|
|
{{- toYaml . | nindent 6 }}
|
|
|
|
{{- end }}
|