From c6be5b65b6714354c3a4b6006cb24274b2cca3fc Mon Sep 17 00:00:00 2001 From: Alex Vorona Date: Sun, 10 Dec 2023 23:16:16 +0000 Subject: [PATCH] [bsc] add topologySpreadConstraints --- dysnix/bsc/Chart.yaml | 2 +- dysnix/bsc/templates/statefulset.yaml | 4 ++++ dysnix/bsc/values.yaml | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/dysnix/bsc/Chart.yaml b/dysnix/bsc/Chart.yaml index ec90039e..0872deaa 100644 --- a/dysnix/bsc/Chart.yaml +++ b/dysnix/bsc/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: bsc description: Binance Smart Chain chart for Kubernetes -version: 0.6.33 +version: 0.6.34 appVersion: 1.2.15 keywords: diff --git a/dysnix/bsc/templates/statefulset.yaml b/dysnix/bsc/templates/statefulset.yaml index 19914e9f..d5fb9bb7 100644 --- a/dysnix/bsc/templates/statefulset.yaml +++ b/dysnix/bsc/templates/statefulset.yaml @@ -63,6 +63,10 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.topologySpreadConstraints }} + topologySpreadConstraints: + {{- toYaml . | nindent 8 }} + {{- end }} {{- with .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} diff --git a/dysnix/bsc/values.yaml b/dysnix/bsc/values.yaml index 5df02616..c7b5ab6d 100644 --- a/dysnix/bsc/values.yaml +++ b/dysnix/bsc/values.yaml @@ -549,6 +549,7 @@ affinity: app.kubernetes.io/name: "bsc" bsc/chain: "mainnet" topologyKey: failure-domain.beta.kubernetes.io/zone +topologySpreadConstraints: [] podDisruptionBudget: enabled: false