From 12cceaa779092ca673636738b7f1b7f7ff2c8ca2 Mon Sep 17 00:00:00 2001 From: nicktrn <55853254+nicktrn@users.noreply.github.com> Date: Tue, 30 Sep 2025 15:31:04 +0100 Subject: [PATCH] feat(helm): support topology spread constraints for webapp (#2560) * feat(helm): support topology spread constraints * chore(helm): update topology env var Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * chore(helm): limit spread constraints to webapp for now --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- hosting/k8s/helm/Chart.yaml | 2 +- hosting/k8s/helm/templates/webapp.yaml | 4 ++++ hosting/k8s/helm/values.yaml | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/hosting/k8s/helm/Chart.yaml b/hosting/k8s/helm/Chart.yaml index 42d962130..f88378829 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 f9f59c363..77bb915af 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 5f8fdaf04..257d19996 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