update deployment to statefulset

Signed-off-by: Chris Sauer <mr-sour@users.noreply.github.com>
This commit is contained in:
Christopher Sauer 2020-12-03 13:46:31 -06:00 committed by Chris Sauer
parent e6babc874b
commit 45eeba3aee

View file

@ -1,6 +1,6 @@
{{- $redisHa := (index .Values "redis-ha") -}} {{- $redisHa := (index .Values "redis-ha") -}}
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: StatefulSet
metadata: metadata:
name: {{ template "argo-cd.controller.fullname" . }} name: {{ template "argo-cd.controller.fullname" . }}
labels: labels:
@ -16,6 +16,7 @@ spec:
matchLabels: matchLabels:
app.kubernetes.io/name: {{ include "argo-cd.name" . }}-application-controller app.kubernetes.io/name: {{ include "argo-cd.name" . }}-application-controller
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
serviceName: {{ template "argo-cd.controller.fullname" . }}
revisionHistoryLimit: 5 revisionHistoryLimit: 5
replicas: {{ .Values.controller.replicas }} replicas: {{ .Values.controller.replicas }}
template: template: