Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions hosting/k8s/helm/templates/supervisor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -241,24 +241,34 @@ spec:
{{- with .Values.supervisor.extraEnvVars }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if not .Values.webapp.bootstrap.enabled }}
{{- if or (not .Values.webapp.bootstrap.enabled) .Values.supervisor.extraVolumeMounts }}
volumeMounts:
{{- if not .Values.webapp.bootstrap.enabled }}
- name: shared
mountPath: /home/node/shared
{{- end }}
{{- with .Values.supervisor.extraVolumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- end }}
{{- with .Values.supervisor.securityContext }}
securityContext:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if not .Values.webapp.bootstrap.enabled }}
{{- if or (not .Values.webapp.bootstrap.enabled) .Values.supervisor.extraVolumes }}
volumes:
{{- if not .Values.webapp.bootstrap.enabled }}
- name: shared
{{- if .Values.persistence.shared.enabled }}
persistentVolumeClaim:
claimName: {{ include "trigger-v4.fullname" . }}-shared
{{- else }}
emptyDir: {}
{{- end }}
{{- end }}
{{- with .Values.supervisor.extraVolumes }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- with .Values.supervisor.nodeSelector }}
nodeSelector:
Expand Down
38 changes: 38 additions & 0 deletions hosting/k8s/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,44 @@ supervisor:
# - name: CUSTOM_VAR
# value: "custom-value"

# Extra volumes added to the Supervisor pod.
#
# Mirrors the `webapp.extraVolumes` pattern. The most common use case is
# mounting an enterprise CA bundle into the supervisor so it can validate
# TLS connections to the trigger.dev webapp, an internal image registry,
# or any other service the supervisor calls. Pair with a matching
# `extraVolumeMounts` entry below and a `NODE_EXTRA_CA_CERTS` env var in
# `supervisor.extraEnvVars`.
extraVolumes:
[]
# - name: config-volume
# configMap:
# name: my-config
#
# Example: enterprise CA bundle ConfigMap
# - name: ca-bundle
# configMap:
# name: enterprise-ca-bundle
# items:
# - key: ca.crt
# path: ca.crt

# Extra volume mounts added to the Supervisor container.
extraVolumeMounts:
[]
# - name: config-volume
# mountPath: /etc/config
# readOnly: true
#
# Example: enterprise CA bundle mount.
# Combine with:
# supervisor.extraEnvVars:
# - name: NODE_EXTRA_CA_CERTS
# value: /etc/ssl/enterprise-ca/ca.crt
# - name: ca-bundle
# mountPath: /etc/ssl/enterprise-ca
# readOnly: true

# ServiceMonitor for Prometheus monitoring
serviceMonitor:
enabled: false
Expand Down
Loading