add topologySpreadConstraint to controller

This commit is contained in:
Joseph Petersen 2020-09-11 08:55:34 +02:00
parent 9e4c31e012
commit 4733e7c0eb
No known key found for this signature in database
GPG key ID: 05756914983DA9E9
4 changed files with 18 additions and 1 deletions

View file

@ -227,6 +227,9 @@ spec:
{{- end }}
{{- if .Values.controller.affinity }}
affinity: {{ toYaml .Values.controller.affinity | nindent 8 }}
{{- end }}
{{- if .Values.controller.topologySpreadConstraints }}
topologySpreadConstraints: {{ toYaml .Values.controller.topologySpreadConstraints | nindent 8 }}
{{- end }}
serviceAccountName: {{ template "ingress-nginx.serviceAccountName" . }}
terminationGracePeriodSeconds: {{ .Values.controller.terminationGracePeriodSeconds }}