Skip to content

Lightweight server monitoring with historical data, docker stats, and alerts.

feat(helm) add envFrom and env (#2626)

NielDBb2cbd05c4ce7
diff --git a/supplemental/helm/beszel-hub/templates/deployment.yaml b/supplemental/helm/beszel-hub/templates/deployment.yaml
index 4117206f2..c60b7f846 100644
--- a/supplemental/helm/beszel-hub/templates/deployment.yaml
+++ b/supplemental/helm/beszel-hub/templates/deployment.yaml
@@ -50,6 +50,15 @@ spec:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
+ envFrom:
+ {{- with .Values.envFrom }}
+ {{- toYaml . | nindent 12 }}
+ {{- end }}
+ env:
+ {{- range $key, $value := .Values.env }}
+ - name: {{ $key }}
+ value: {{ $value | quote }}
+ {{- end }}
{{- with .Values.livenessProbe }}
livenessProbe:
{{- toYaml . | nindent 12 }}
diff --git a/supplemental/helm/beszel-hub/values.yaml b/supplemental/helm/beszel-hub/values.yaml
index 13d1970dc..2da06a1b0 100644
--- a/supplemental/helm/beszel-hub/values.yaml
+++ b/supplemental/helm/beszel-hub/values.yaml
@@ -116,6 +116,10 @@ autoscaling:
# volumeMounts: {}
+env: {}
+
+envFrom: []
+
# -- `spec.PersitentVolumeClaim` configuration
persistentVolumeClaim:
# -- set to true to use pvc