diff --git a/charts/quickwit/templates/control-plane-deployment.yaml b/charts/quickwit/templates/control-plane-deployment.yaml index 38ff065..c693cf7 100644 --- a/charts/quickwit/templates/control-plane-deployment.yaml +++ b/charts/quickwit/templates/control-plane-deployment.yaml @@ -124,3 +124,7 @@ spec: {{- if .Values.control_plane.runtimeClassName }} runtimeClassName: {{ .Values.control_plane.runtimeClassName | quote }} {{- end }} + {{- with .Values.control_plane.topologySpreadConstraints }} + topologySpreadConstraints: + {{- toYaml . | nindent 8 }} + {{ end }} diff --git a/charts/quickwit/templates/indexer-statefulset.yaml b/charts/quickwit/templates/indexer-statefulset.yaml index d3adb76..b08dc92 100644 --- a/charts/quickwit/templates/indexer-statefulset.yaml +++ b/charts/quickwit/templates/indexer-statefulset.yaml @@ -135,6 +135,10 @@ spec: {{- if .Values.indexer.runtimeClassName }} runtimeClassName: {{ .Values.indexer.runtimeClassName | quote }} {{- end }} + {{- with .Values.indexer.topologySpreadConstraints }} + topologySpreadConstraints: + {{- toYaml . | nindent 8 }} + {{ end }} {{- if .Values.indexer.persistentVolume.enabled }} volumeClaimTemplates: - metadata: diff --git a/charts/quickwit/templates/janitor-deployment.yaml b/charts/quickwit/templates/janitor-deployment.yaml index 28e766f..7091f06 100644 --- a/charts/quickwit/templates/janitor-deployment.yaml +++ b/charts/quickwit/templates/janitor-deployment.yaml @@ -125,4 +125,8 @@ spec: {{- if .Values.janitor.runtimeClassName }} runtimeClassName: {{ .Values.janitor.runtimeClassName | quote }} {{- end }} + {{- with .Values.janitor.topologySpreadConstraints }} + topologySpreadConstraints: + {{- toYaml . | nindent 8 }} + {{ end }} {{- end }} diff --git a/charts/quickwit/templates/metastore-deployment.yaml b/charts/quickwit/templates/metastore-deployment.yaml index b4eb4dc..dcdc04e 100644 --- a/charts/quickwit/templates/metastore-deployment.yaml +++ b/charts/quickwit/templates/metastore-deployment.yaml @@ -123,3 +123,7 @@ spec: {{- if .Values.metastore.runtimeClassName }} runtimeClassName: {{ .Values.metastore.runtimeClassName | quote }} {{- end }} + {{- with .Values.metastore.topologySpreadConstraints }} + topologySpreadConstraints: + {{- toYaml . | nindent 8 }} + {{ end }} diff --git a/charts/quickwit/templates/searcher-statefulset.yaml b/charts/quickwit/templates/searcher-statefulset.yaml index febe512..3159437 100644 --- a/charts/quickwit/templates/searcher-statefulset.yaml +++ b/charts/quickwit/templates/searcher-statefulset.yaml @@ -134,6 +134,10 @@ spec: {{- if .Values.searcher.runtimeClassName }} runtimeClassName: {{ .Values.searcher.runtimeClassName | quote }} {{- end }} + {{- with .Values.searcher.topologySpreadConstraints }} + topologySpreadConstraints: + {{- toYaml . | nindent 8 }} + {{ end }} {{- if .Values.searcher.persistentVolume.enabled }} volumeClaimTemplates: - metadata: