feat(argo-rollouts): Support HA mode for controller with multiple replicas (#1016)
Signed-off-by: Tung Huynh <31434093+huynhsontung@users.noreply.github.com> Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
This commit is contained in:
parent
0ce72e3028
commit
0ee1099de9
3 changed files with 7 additions and 2 deletions
|
|
@ -12,6 +12,7 @@ spec:
|
|||
{{- include "argo-rollouts.selectorLabels" . | nindent 6 }}
|
||||
strategy:
|
||||
type: Recreate
|
||||
replicas: {{ .Values.controller.replicas }}
|
||||
template:
|
||||
metadata:
|
||||
{{- with .Values.podAnnotations }}
|
||||
|
|
@ -36,6 +37,9 @@ spec:
|
|||
{{- if not .Values.clusterInstall }}
|
||||
- --namespaced
|
||||
{{- end }}
|
||||
{{- if gt .Values.controller.replicas 1.0 }}
|
||||
- --leader-elect
|
||||
{{- end }}
|
||||
{{- with .Values.controller.extraArgs }}
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue