diff --git a/contrib/helm/calert/README.md b/contrib/helm/calert/README.md index b3ebd38..71c6f55 100644 --- a/contrib/helm/calert/README.md +++ b/contrib/helm/calert/README.md @@ -57,4 +57,5 @@ Change the values according to the need of the environment in ``contrib/helm/cal | nodeSelector | object | `{}` | | | tolerations | list | `[]` | | | affinity | object | `{}` | | +| topologySpreadConstraints | list | `[]` | | | podAnnotations | object | `{}` | | diff --git a/contrib/helm/calert/templates/deployment.yaml b/contrib/helm/calert/templates/deployment.yaml index ed2dd86..f014b67 100644 --- a/contrib/helm/calert/templates/deployment.yaml +++ b/contrib/helm/calert/templates/deployment.yaml @@ -84,6 +84,10 @@ spec: affinity: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.topologySpreadConstraints }} + topologySpreadConstraints: + {{- toYaml . | nindent 8 }} + {{- end }} {{- with .Values.tolerations }} tolerations: {{- toYaml . | nindent 8 }} diff --git a/contrib/helm/calert/values.yaml b/contrib/helm/calert/values.yaml index e24f5d9..ec33394 100644 --- a/contrib/helm/calert/values.yaml +++ b/contrib/helm/calert/values.yaml @@ -78,4 +78,6 @@ tolerations: [] affinity: {} +topologySpreadConstraints: [] + podAnnotations: {}