Skip to content

Commit

Permalink
templates: add topologySpreadConstraints
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-fidel-wmx committed Nov 13, 2024
1 parent dcc9e6d commit e6b0723
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/quickwit/templates/control-plane-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
4 changes: 4 additions & 0 deletions charts/quickwit/templates/indexer-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions charts/quickwit/templates/janitor-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
4 changes: 4 additions & 0 deletions charts/quickwit/templates/metastore-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,7 @@ spec:
{{- if .Values.metastore.runtimeClassName }}
runtimeClassName: {{ .Values.metastore.runtimeClassName | quote }}
{{- end }}
{{- with .Values.metastore.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{ end }}
4 changes: 4 additions & 0 deletions charts/quickwit/templates/searcher-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
10 changes: 10 additions & 0 deletions charts/quickwit/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ searcher:

runtimeClassName: ""

topologySpreadConstraints: {}

indexer:
replicaCount: 1

Expand Down Expand Up @@ -238,6 +240,8 @@ indexer:
# storage: "1Gi"
# storageClass: ""

topologySpreadConstraints: {}

metastore:
replicaCount: 1

Expand Down Expand Up @@ -307,6 +311,8 @@ metastore:

runtimeClassName: ""

topologySpreadConstraints: {}

control_plane:
# Extra env for control plane
extraEnv: {}
Expand Down Expand Up @@ -370,6 +376,8 @@ control_plane:

runtimeClassName: ""

topologySpreadConstraints: {}

janitor:
# Enable Janitor service
enabled: true
Expand Down Expand Up @@ -436,6 +444,8 @@ janitor:

runtimeClassName: ""

topologySpreadConstraints: {}

# Deploy jobs to bootstrap creation of indexes and sources for quickwit clusters
bootstrap:
# Enable bootstrap jobs
Expand Down

0 comments on commit e6b0723

Please sign in to comment.