Skip to content

Commit 71d92e7

Browse files
feat(chart): add webapp.service.extraPorts to expose extra ports on the webapp Service
Adds an `extraPorts` hook to the webapp Service template so additional in-cluster ports can be merged onto the existing `<release>-webapp` Service via values, without a separate Service or TLS. Primary use: exposing the embedded s2-lite :8080 port for realtime streams in TLS-off environments (e.g. GameWarden) where the umbrella's tls-gated webapp-internal Service doesn't render. Default is an empty list, so existing renders are unchanged. PLT-940 Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 82e6b4b commit 71d92e7

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

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.5.0-rc.4-plt663.7
5+
version: 4.5.0-rc.4-plt663.8
66
appVersion: v4.5.0-rc.4
77
home: https://trigger.dev
88
sources:

hosting/k8s/helm/templates/webapp.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,9 @@ spec:
501501
targetPort: {{ .Values.webapp.service.servicePortTargetPort | default .Values.webapp.service.targetPort | default "http" }}
502502
protocol: TCP
503503
name: {{ .Values.webapp.service.name | default "http" }}
504+
{{- with .Values.webapp.service.extraPorts }}
505+
{{- toYaml . | nindent 4 }}
506+
{{- end }}
504507
selector:
505508
{{- include "trigger-v4.componentSelectorLabels" (dict "Chart" .Chart "Release" .Release "Values" .Values "component" $component) | nindent 4 }}
506509
---

hosting/k8s/helm/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ webapp:
7575
type: ClusterIP
7676
port: 3030
7777
targetPort: 3000
78+
# Extra Service ports merged into the webapp Service. Use to expose an
79+
# in-cluster-only port (e.g. the embedded s2-lite :8080 for realtime
80+
# streams) on the existing Service without a separate Service or TLS.
81+
# Each entry must be named (k8s requires names once a Service has >1 port).
82+
extraPorts: []
7883

7984
podAnnotations: {}
8085

0 commit comments

Comments
 (0)