From 98bddcaf3167e9ca3d348d224a8a9eb792a42194 Mon Sep 17 00:00:00 2001 From: jmho Date: Mon, 23 Nov 2026 16:34:54 -0500 Subject: [PATCH] feat(chart): add optional webapp.strategy (PLT-2265) The webapp Deployment had no way to set its update strategy, so it always used the Kubernetes default (RollingUpdate). With one replica and the shared ReadWriteOnce volume, a rolling update starts the new pod before the old one stops, and the new pod waits forever to attach the volume. Deployments worked around it with a Helm post-render patch, which was lost in a config change. Add webapp.strategy, empty by default so existing installs render the same Deployment as before, and bump the chart to 4.5.7-plt663.12. Co-Authored-By: Claude Opus 5.5 --- hosting/k8s/helm/Chart.yaml | 2 +- hosting/k8s/helm/templates/webapp.yaml | 4 ++++ hosting/k8s/helm/values.yaml | 7 +++++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/hosting/k8s/helm/Chart.yaml b/hosting/k8s/helm/Chart.yaml index c37586e94ef..e860553631a 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.5.7-plt663.11 +version: 4.5.7-plt663.12 appVersion: v4.5.7 home: https://trigger.dev sources: diff --git a/hosting/k8s/helm/templates/webapp.yaml b/hosting/k8s/helm/templates/webapp.yaml index fba822c595c..1b8a5b2e2d4 100644 --- a/hosting/k8s/helm/templates/webapp.yaml +++ b/hosting/k8s/helm/templates/webapp.yaml @@ -49,6 +49,10 @@ metadata: {{- include "trigger-v4.componentLabels" (dict "Chart" .Chart "Release" .Release "Values" .Values "component" $component) | nindent 4 }} spec: replicas: {{ .Values.webapp.replicaCount }} + {{- with .Values.webapp.strategy }} + strategy: + {{- toYaml . | nindent 4 }} + {{- end }} selector: matchLabels: {{- include "trigger-v4.componentSelectorLabels" (dict "Chart" .Chart "Release" .Release "Values" .Values "component" $component) | nindent 6 }} diff --git a/hosting/k8s/helm/values.yaml b/hosting/k8s/helm/values.yaml index 26647ae71e6..83f3c90f665 100644 --- a/hosting/k8s/helm/values.yaml +++ b/hosting/k8s/helm/values.yaml @@ -76,6 +76,13 @@ webapp: replicaCount: 1 + # Deployment update strategy. Empty keeps the Kubernetes default (RollingUpdate). + # Set `type: Recreate` when the webapp mounts a ReadWriteOnce volume (e.g. + # `persistence.shared` with the default access mode): a rolling update starts + # the new pod before the old one stops, and the new pod cannot attach the + # volume while the old pod still holds it. + strategy: {} + service: type: ClusterIP port: 3030