feat: Add HPA for ArgoCD server and repoServer components (#240)

* argo-cd: add optional hpa, cleanup whitespace
This commit is contained in:
Gustav Paul 2020-02-16 16:14:39 -08:00 committed by GitHub
parent fdb6093011
commit d9d7862864
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 98 additions and 4 deletions

View file

@ -16,7 +16,9 @@ spec:
app.kubernetes.io/name: {{ include "argo-cd.name" . }}-{{ .Values.server.name }}
app.kubernetes.io/instance: {{ .Release.Name }}
revisionHistoryLimit: 5
{{- if (ne .Values.server.autoscaling.enabled true) }}
replicas: {{ .Values.server.replicas }}
{{- end }}
template:
metadata:
{{- if .Values.server.podAnnotations }}
@ -69,7 +71,7 @@ spec:
{{- end }}
{{- if .Values.server.containerSecurityContext }}
securityContext: {{- toYaml .Values.server.containerSecurityContext | nindent 10 }}
{{- end }}
{{- end }}
{{- if .Values.server.env }}
env:
{{- toYaml .Values.server.env | nindent 8 }}