2020-02-13 03:57:25 +09:00
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
|
|
|
|
metadata:
|
2023-05-23 02:07:34 -05:00
|
|
|
{{- with (mergeOverwrite (deepCopy .Values.global.deploymentAnnotations) .Values.controller.deploymentAnnotations) }}
|
|
|
|
|
annotations:
|
|
|
|
|
{{- range $key, $value := . }}
|
|
|
|
|
{{ $key }}: {{ $value | quote }}
|
|
|
|
|
{{- end }}
|
|
|
|
|
{{- end }}
|
2021-05-31 18:06:26 +02:00
|
|
|
name: {{ include "argo-rollouts.fullname" . }}
|
2023-04-14 03:16:20 +09:00
|
|
|
namespace: {{ .Release.Namespace | quote }}
|
2020-02-13 03:57:25 +09:00
|
|
|
labels:
|
2024-03-23 13:47:03 -07:00
|
|
|
{{- range $key, $value := (mergeOverwrite (deepCopy .Values.global.deploymentLabels) .Values.controller.deploymentLabels) }}
|
|
|
|
|
{{ $key }}: {{ $value | quote }}
|
|
|
|
|
{{- end }}
|
2020-02-13 03:57:25 +09:00
|
|
|
app.kubernetes.io/component: {{ .Values.controller.component }}
|
2021-05-31 18:06:26 +02:00
|
|
|
{{- include "argo-rollouts.labels" . | nindent 4 }}
|
2020-02-13 03:57:25 +09:00
|
|
|
spec:
|
|
|
|
|
selector:
|
|
|
|
|
matchLabels:
|
2021-08-16 11:27:24 -04:00
|
|
|
app.kubernetes.io/component: {{ .Values.controller.component }}
|
2021-05-31 18:06:26 +02:00
|
|
|
{{- include "argo-rollouts.selectorLabels" . | nindent 6 }}
|
|
|
|
|
strategy:
|
2024-06-14 18:00:28 +09:00
|
|
|
type: RollingUpdate
|
2021-12-20 11:13:24 -08:00
|
|
|
replicas: {{ .Values.controller.replicas }}
|
2024-05-23 16:29:52 +09:00
|
|
|
revisionHistoryLimit: {{ .Values.global.revisionHistoryLimit }}
|
2020-02-13 03:57:25 +09:00
|
|
|
template:
|
|
|
|
|
metadata:
|
2023-03-29 11:16:34 +02:00
|
|
|
{{- with (mergeOverwrite (deepCopy .Values.podAnnotations) .Values.controller.podAnnotations) }}
|
2020-12-06 09:37:53 -08:00
|
|
|
annotations:
|
2023-03-29 11:16:34 +02:00
|
|
|
{{- range $key, $value := . }}
|
|
|
|
|
{{ $key }}: {{ $value | quote }}
|
|
|
|
|
{{- end }}
|
2020-12-06 09:37:53 -08:00
|
|
|
{{- end }}
|
2020-02-13 03:57:25 +09:00
|
|
|
labels:
|
2021-05-31 18:06:26 +02:00
|
|
|
{{- include "argo-rollouts.selectorLabels" . | nindent 8 }}
|
2021-08-16 11:27:24 -04:00
|
|
|
app.kubernetes.io/component: {{ .Values.controller.component }}
|
2024-05-05 20:24:13 -04:00
|
|
|
{{- range $key, $value := (mergeOverwrite (deepCopy .Values.podLabels) .Values.controller.podLabels) }}
|
2021-05-31 18:06:26 +02:00
|
|
|
{{ $key }}: {{ $value | quote }}
|
|
|
|
|
{{- end }}
|
2020-02-13 03:57:25 +09:00
|
|
|
spec:
|
2020-03-25 09:29:44 -07:00
|
|
|
{{- with .Values.imagePullSecrets }}
|
|
|
|
|
imagePullSecrets:
|
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
|
{{- end }}
|
2021-05-31 18:06:26 +02:00
|
|
|
serviceAccountName: {{ include "argo-rollouts.serviceAccountName" . }}
|
2020-02-13 03:57:25 +09:00
|
|
|
containers:
|
2021-05-31 18:06:26 +02: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 18:39:17 +03: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 08:29:19 -04:00
|
|
|
{{- if not .Values.clusterInstall }}
|
2021-01-21 17:48:29 +00:00
|
|
|
- --namespaced
|
|
|
|
|
{{- end }}
|
2023-10-24 07:39:37 -05:00
|
|
|
{{- if gt (int .Values.controller.replicas) 1 }}
|
2021-12-20 11:13:24 -08:00
|
|
|
- --leader-elect
|
|
|
|
|
{{- end }}
|
2021-10-18 08:29:19 -04:00
|
|
|
{{- with .Values.controller.extraArgs }}
|
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
|
{{- end }}
|
2022-06-17 03:12:52 -05:00
|
|
|
{{- with .Values.controller.extraEnv }}
|
|
|
|
|
env:
|
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
|
{{- end }}
|
2020-02-13 03:57:25 +09:00
|
|
|
imagePullPolicy: {{ .Values.controller.image.pullPolicy }}
|
2021-05-31 18:06:26 +02:00
|
|
|
name: argo-rollouts
|
|
|
|
|
ports:
|
2023-05-20 18:39:17 +03:00
|
|
|
- containerPort: {{ .Values.controller.containerPorts.metrics }}
|
2021-05-31 18:06:26 +02:00
|
|
|
name: metrics
|
2023-05-20 18:39:17 +03:00
|
|
|
- containerPort: {{ .Values.controller.containerPorts.healthz }}
|
2022-03-23 17:11:46 -04:00
|
|
|
name: healthz
|
2021-08-10 02:39:38 -04:00
|
|
|
livenessProbe:
|
|
|
|
|
{{- toYaml .Values.controller.livenessProbe | nindent 10 }}
|
|
|
|
|
readinessProbe:
|
|
|
|
|
{{- toYaml .Values.controller.readinessProbe | nindent 10 }}
|
2021-05-07 13:29:36 -04:00
|
|
|
securityContext:
|
2021-05-31 18:06:26 +02:00
|
|
|
{{- toYaml .Values.containerSecurityContext | nindent 10 }}
|
2025-01-03 16:07:27 +02:00
|
|
|
{{- with .Values.controller.lifecycle }}
|
|
|
|
|
lifecycle: {{ toYaml . | nindent 10 }}
|
|
|
|
|
{{- end }}
|
2021-05-07 13:29:36 -04:00
|
|
|
resources:
|
2020-07-13 03:52:28 +04:00
|
|
|
{{- toYaml .Values.controller.resources | nindent 10 }}
|
2023-04-14 01:58:48 +02:00
|
|
|
volumeMounts:
|
2024-06-26 18:10:00 +09:00
|
|
|
- name: plugin-bin
|
|
|
|
|
mountPath: /home/argo-rollouts/plugin-bin
|
|
|
|
|
- name: tmp
|
|
|
|
|
mountPath: /tmp
|
|
|
|
|
{{- with .Values.controller.volumeMounts }}
|
2023-04-14 01:58:48 +02:00
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
|
{{- end }}
|
2021-11-09 12:49:48 -08:00
|
|
|
{{- with .Values.controller.extraContainers }}
|
|
|
|
|
{{- toYaml . | nindent 6 }}
|
|
|
|
|
{{- end }}
|
2022-08-26 10:40:01 -06:00
|
|
|
{{- with .Values.controller.initContainers }}
|
|
|
|
|
initContainers:
|
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
|
{{- end }}
|
2020-07-13 03:52:28 +04:00
|
|
|
{{- if .Values.controller.nodeSelector }}
|
|
|
|
|
nodeSelector:
|
|
|
|
|
{{- toYaml .Values.controller.nodeSelector | nindent 8 }}
|
|
|
|
|
{{- end }}
|
2021-05-31 18:06:26 +02:00
|
|
|
securityContext:
|
|
|
|
|
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
2025-01-03 16:07:27 +02:00
|
|
|
{{- with .Values.controller.terminationGracePeriodSeconds }}
|
|
|
|
|
terminationGracePeriodSeconds: {{ . }}
|
|
|
|
|
{{- end }}
|
2020-07-13 03:52:28 +04: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 11:38:50 +09: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 14:38:02 +03:00
|
|
|
{{- with .Values.controller.priorityClassName }}
|
|
|
|
|
priorityClassName: {{ . }}
|
|
|
|
|
{{- end }}
|
2023-04-14 01:58:48 +02:00
|
|
|
volumes:
|
2024-06-26 18:10:00 +09:00
|
|
|
- name: plugin-bin
|
|
|
|
|
emptyDir: {}
|
|
|
|
|
- name: tmp
|
|
|
|
|
emptyDir: {}
|
|
|
|
|
{{- with .Values.controller.volumes }}
|
2023-04-14 01:58:48 +02:00
|
|
|
{{- toYaml . | nindent 6 }}
|
|
|
|
|
{{- end }}
|