diff --git a/hosting/k8s/helm/Chart.yaml b/hosting/k8s/helm/Chart.yaml index 42d962130f..f88378829b 100644 --- a/hosting/k8s/helm/Chart.yaml +++ b/hosting/k8s/helm/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: trigger description: The official Trigger.dev Helm chart type: application -version: 4.0.1 +version: 4.0.2 appVersion: v4.0.4 home: https://trigger.dev sources: diff --git a/hosting/k8s/helm/templates/webapp.yaml b/hosting/k8s/helm/templates/webapp.yaml index f9f59c363f..77bb915af8 100644 --- a/hosting/k8s/helm/templates/webapp.yaml +++ b/hosting/k8s/helm/templates/webapp.yaml @@ -419,6 +419,10 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.webapp.topologySpreadConstraints }} + topologySpreadConstraints: + {{- tpl (toYaml .) $ | nindent 8 }} + {{- end }} --- apiVersion: v1 kind: Service diff --git a/hosting/k8s/helm/values.yaml b/hosting/k8s/helm/values.yaml index 5f8fdaf046..257d199967 100644 --- a/hosting/k8s/helm/values.yaml +++ b/hosting/k8s/helm/values.yaml @@ -69,6 +69,8 @@ webapp: nodeSelector: {} tolerations: [] affinity: {} + # Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template + topologySpreadConstraints: [] logLevel: "info" gracefulShutdownTimeout: 1000