diff --git a/charts/chatwoot/Chart.yaml b/charts/chatwoot/Chart.yaml index 7aa9678..32da4ae 100644 --- a/charts/chatwoot/Chart.yaml +++ b/charts/chatwoot/Chart.yaml @@ -34,7 +34,7 @@ sources: - http://www.chatwoot.com # This is the chart version. -version: 2.0.24 +version: 2.0.25 # This is the application version. diff --git a/charts/chatwoot/templates/web-deployment.yaml b/charts/chatwoot/templates/web-deployment.yaml index b343357..65e98b7 100644 --- a/charts/chatwoot/templates/web-deployment.yaml +++ b/charts/chatwoot/templates/web-deployment.yaml @@ -40,6 +40,12 @@ spec: {{- if .Values.nodeSelector }} nodeSelector: {{- include "common.tplvalues.render" (dict "value" .Values.nodeSelector "context" $) | nindent 8 }} {{- end }} + + {{- with .Values.web.topologySpreadConstraints }} + topologySpreadConstraints: + {{- include "common.tplvalues.render" (dict "value" . "context" $) | nindent 8 }} + {{- end }} + containers: - args: - bundle diff --git a/charts/chatwoot/templates/worker-deployment.yaml b/charts/chatwoot/templates/worker-deployment.yaml index 1e55b19..2adf179 100644 --- a/charts/chatwoot/templates/worker-deployment.yaml +++ b/charts/chatwoot/templates/worker-deployment.yaml @@ -40,6 +40,12 @@ spec: {{- if .Values.nodeSelector }} nodeSelector: {{- include "common.tplvalues.render" (dict "value" .Values.nodeSelector "context" $) | nindent 8 }} {{- end }} + + {{- with .Values.worker.topologySpreadConstraints }} + topologySpreadConstraints: + {{- include "common.tplvalues.render" (dict "value" . "context" $) | nindent 8 }} + {{- end }} + containers: - args: - bundle diff --git a/charts/chatwoot/values.yaml b/charts/chatwoot/values.yaml index 3fa71c2..8ce51a2 100644 --- a/charts/chatwoot/values.yaml +++ b/charts/chatwoot/values.yaml @@ -22,6 +22,9 @@ web: minpods: 1 maxpods: 10 replicaCount: 1 + # Topology spread constraints for web pods + # Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/ + topologySpreadConstraints: [] livenessProbe: initialDelaySeconds: 15 periodSeconds: 15 @@ -58,6 +61,9 @@ worker: minpods: 2 maxpods: 10 replicaCount: 2 + # Topology spread constraints for worker pods + # Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/ + topologySpreadConstraints: [] resources: {} # We usually recommend not to specify default resources and to leave this as a conscious # choice for the user. This also increases chances charts run on environments with little