Skip to content

Commit df09e53

Browse files
authored
Add pod topology spread constrant option to Ingester/Alertmanager sta… (#403)
* Add pod topology spread constrant option to Ingester/Alertmanager statefulset Signed-off-by: Dan Peric <108087612+dpericaxon@users.noreply.github.com> * changelog message Signed-off-by: Dan Peric <108087612+dpericaxon@users.noreply.github.com> Signed-off-by: Dan Peric <108087612+dpericaxon@users.noreply.github.com>
1 parent e32b77d commit df09e53

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## master / unreleased
44

55
* [DEPENDENCY] Update quay.io/cortexproject/cortex Docker tag to v1.13.1 #401
6+
* [ENHANCEMENT] Add pod topology spread constrant option to Ingester/Alertmanager statefulset #403
67

78
# 1.7.0 / 2022-09-23
89

templates/alertmanager/alertmanager-statefulset.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ spec:
7171
{{- end }}
7272
nodeSelector:
7373
{{- toYaml .Values.alertmanager.nodeSelector | nindent 8 }}
74+
{{- if .Values.alertmanager.topologySpreadConstraints }}
75+
topologySpreadConstraints:
76+
{{- toYaml .Values.alertmanager.topologySpreadConstraints | nindent 8}}
77+
{{- end }}
7478
affinity:
7579
{{- toYaml .Values.alertmanager.affinity | nindent 8 }}
7680
tolerations:

templates/ingester/ingester-statefulset.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ spec:
7373
{{- end }}
7474
nodeSelector:
7575
{{- toYaml .Values.ingester.nodeSelector | nindent 8 }}
76+
{{- if .Values.ingester.topologySpreadConstraints }}
77+
topologySpreadConstraints:
78+
{{- toYaml .Values.ingester.topologySpreadConstraints | nindent 8}}
79+
{{- end }}
7680
affinity:
7781
{{- toYaml .Values.ingester.affinity | nindent 8 }}
7882
tolerations:

0 commit comments

Comments
 (0)