From 32679604bf09d9cc87ef1eb3506407fb965fb670 Mon Sep 17 00:00:00 2001 From: Sebastian Mangelsen Date: Fri, 29 Sep 2023 09:42:16 +0200 Subject: [PATCH] add support for .spec.topologySpreadConstraints on Postee server - solves #617 - allow the end user to define topologySpreadConstraints - we focus on server instance first because we do not think that it is that important to spread the UI to different availability zones --- deploy/helm/postee/templates/postee.yaml | 4 ++++ deploy/helm/postee/values.yaml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/deploy/helm/postee/templates/postee.yaml b/deploy/helm/postee/templates/postee.yaml index b9e47632..0917e265 100644 --- a/deploy/helm/postee/templates/postee.yaml +++ b/deploy/helm/postee/templates/postee.yaml @@ -117,6 +117,10 @@ spec: {{- end }} resources: {{- toYaml .Values.resources | nindent 12 }} + {{- with .Values.topologySpreadConstraints }} + topologySpreadConstraints: + {{- toYaml . | nindent 8 }} + {{- end }} volumes: - secret: secretName: {{ $fullName }}-secret diff --git a/deploy/helm/postee/values.yaml b/deploy/helm/postee/values.yaml index 0675c55a..1dab6b19 100644 --- a/deploy/helm/postee/values.yaml +++ b/deploy/helm/postee/values.yaml @@ -210,6 +210,7 @@ imageInit: tag: "1.34" imagePullSecrets: [] +topologySpreadConstraints: [] nameOverride: "" fullnameOverride: "" @@ -281,6 +282,8 @@ tolerations: [] affinity: {} + + ## Enable persistence using Persistent Volume Claims ## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/ ##