Skip to content

Commit e6b0723

Browse files
templates: add topologySpreadConstraints
1 parent dcc9e6d commit e6b0723

File tree

6 files changed

+30
-0
lines changed

6 files changed

+30
-0
lines changed

charts/quickwit/templates/control-plane-deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,3 +124,7 @@ spec:
124124
{{- if .Values.control_plane.runtimeClassName }}
125125
runtimeClassName: {{ .Values.control_plane.runtimeClassName | quote }}
126126
{{- end }}
127+
{{- with .Values.control_plane.topologySpreadConstraints }}
128+
topologySpreadConstraints:
129+
{{- toYaml . | nindent 8 }}
130+
{{ end }}

charts/quickwit/templates/indexer-statefulset.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ spec:
135135
{{- if .Values.indexer.runtimeClassName }}
136136
runtimeClassName: {{ .Values.indexer.runtimeClassName | quote }}
137137
{{- end }}
138+
{{- with .Values.indexer.topologySpreadConstraints }}
139+
topologySpreadConstraints:
140+
{{- toYaml . | nindent 8 }}
141+
{{ end }}
138142
{{- if .Values.indexer.persistentVolume.enabled }}
139143
volumeClaimTemplates:
140144
- metadata:

charts/quickwit/templates/janitor-deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,4 +125,8 @@ spec:
125125
{{- if .Values.janitor.runtimeClassName }}
126126
runtimeClassName: {{ .Values.janitor.runtimeClassName | quote }}
127127
{{- end }}
128+
{{- with .Values.janitor.topologySpreadConstraints }}
129+
topologySpreadConstraints:
130+
{{- toYaml . | nindent 8 }}
131+
{{ end }}
128132
{{- end }}

charts/quickwit/templates/metastore-deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,7 @@ spec:
123123
{{- if .Values.metastore.runtimeClassName }}
124124
runtimeClassName: {{ .Values.metastore.runtimeClassName | quote }}
125125
{{- end }}
126+
{{- with .Values.metastore.topologySpreadConstraints }}
127+
topologySpreadConstraints:
128+
{{- toYaml . | nindent 8 }}
129+
{{ end }}

charts/quickwit/templates/searcher-statefulset.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@ spec:
134134
{{- if .Values.searcher.runtimeClassName }}
135135
runtimeClassName: {{ .Values.searcher.runtimeClassName | quote }}
136136
{{- end }}
137+
{{- with .Values.searcher.topologySpreadConstraints }}
138+
topologySpreadConstraints:
139+
{{- toYaml . | nindent 8 }}
140+
{{ end }}
137141
{{- if .Values.searcher.persistentVolume.enabled }}
138142
volumeClaimTemplates:
139143
- metadata:

charts/quickwit/values.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ searcher:
143143

144144
runtimeClassName: ""
145145

146+
topologySpreadConstraints: {}
147+
146148
indexer:
147149
replicaCount: 1
148150

@@ -238,6 +240,8 @@ indexer:
238240
# storage: "1Gi"
239241
# storageClass: ""
240242

243+
topologySpreadConstraints: {}
244+
241245
metastore:
242246
replicaCount: 1
243247

@@ -307,6 +311,8 @@ metastore:
307311

308312
runtimeClassName: ""
309313

314+
topologySpreadConstraints: {}
315+
310316
control_plane:
311317
# Extra env for control plane
312318
extraEnv: {}
@@ -370,6 +376,8 @@ control_plane:
370376

371377
runtimeClassName: ""
372378

379+
topologySpreadConstraints: {}
380+
373381
janitor:
374382
# Enable Janitor service
375383
enabled: true
@@ -436,6 +444,8 @@ janitor:
436444

437445
runtimeClassName: ""
438446

447+
topologySpreadConstraints: {}
448+
439449
# Deploy jobs to bootstrap creation of indexes and sources for quickwit clusters
440450
bootstrap:
441451
# Enable bootstrap jobs

0 commit comments

Comments
 (0)