Skip to content

Commit 6fea802

Browse files
authored
helm: set default webapp container and add extraVolumes (#2222)
* set default webapp container * bump version * add webapp extraVolumes and extraVolumeMounts * bump version
1 parent 09ef762 commit 6fea802

File tree

3 files changed

+30
-3
lines changed

3 files changed

+30
-3
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.0-beta.12
5+
version: 4.0.0-beta.14
66
appVersion: trigger-helm-rc.1
77
home: https://trigger.dev
88
sources:

hosting/k8s/helm/templates/webapp.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,11 @@ spec:
4848
{{- include "trigger-v4.componentSelectorLabels" (dict "Chart" .Chart "Release" .Release "Values" .Values "component" $component) | nindent 6 }}
4949
template:
5050
metadata:
51-
{{- with .Values.webapp.podAnnotations }}
5251
annotations:
52+
kubectl.kubernetes.io/default-container: webapp
53+
{{- with .Values.webapp.podAnnotations }}
5354
{{- toYaml . | nindent 8 }}
54-
{{- end }}
55+
{{- end }}
5556
labels:
5657
{{- include "trigger-v4.componentSelectorLabels" (dict "Chart" .Chart "Release" .Release "Values" .Values "component" $component) | nindent 8 }}
5758
spec:
@@ -323,6 +324,9 @@ spec:
323324
volumeMounts:
324325
- name: shared
325326
mountPath: /home/node/shared
327+
{{- with .Values.webapp.extraVolumeMounts }}
328+
{{- toYaml . | nindent 12 }}
329+
{{- end }}
326330
volumes:
327331
- name: shared
328332
{{- if .Values.persistence.shared.enabled }}
@@ -331,6 +335,9 @@ spec:
331335
{{- else }}
332336
emptyDir: {}
333337
{{- end }}
338+
{{- with .Values.webapp.extraVolumes }}
339+
{{- toYaml . | nindent 8 }}
340+
{{- end }}
334341
{{- with .Values.webapp.nodeSelector }}
335342
nodeSelector:
336343
{{- toYaml . | nindent 8 }}

hosting/k8s/helm/values.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,26 @@ webapp:
115115
# name: my-secret
116116
# key: secret-key
117117

118+
# Extra volumes for the webapp pod
119+
extraVolumes:
120+
[]
121+
# - name: config-volume
122+
# configMap:
123+
# name: my-config
124+
# - name: secret-volume
125+
# secret:
126+
# secretName: my-secret
127+
128+
# Extra volume mounts for the webapp container
129+
extraVolumeMounts:
130+
[]
131+
# - name: config-volume
132+
# mountPath: /etc/config
133+
# readOnly: true
134+
# - name: secret-volume
135+
# mountPath: /etc/secrets
136+
# readOnly: true
137+
118138
# ServiceMonitor for Prometheus monitoring
119139
serviceMonitor:
120140
enabled: false

0 commit comments

Comments
 (0)