Skip to content

Commit 12cceaa

Browse files
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>
1 parent ddebe4d commit 12cceaa

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

hosting/k8s/helm/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: trigger
33
description: The official Trigger.dev Helm chart
44
type: application
5-
version: 4.0.1
5+
version: 4.0.2
66
appVersion: v4.0.4
77
home: https://trigger.dev
88
sources:

hosting/k8s/helm/templates/webapp.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,10 @@ spec:
419419
tolerations:
420420
{{- toYaml . | nindent 8 }}
421421
{{- end }}
422+
{{- with .Values.webapp.topologySpreadConstraints }}
423+
topologySpreadConstraints:
424+
{{- tpl (toYaml .) $ | nindent 8 }}
425+
{{- end }}
422426
---
423427
apiVersion: v1
424428
kind: Service

hosting/k8s/helm/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ webapp:
6969
nodeSelector: {}
7070
tolerations: []
7171
affinity: {}
72+
# Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
73+
topologySpreadConstraints: []
7274

7375
logLevel: "info"
7476
gracefulShutdownTimeout: 1000

0 commit comments

Comments
 (0)