Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

added secret envs to filer (#4284)

Matt889ecf5c9d14
diff --git a/k8s/charts/seaweedfs/templates/filer-statefulset.yaml b/k8s/charts/seaweedfs/templates/filer-statefulset.yaml
index 4b616fde10..b7227f9347 100644
--- a/k8s/charts/seaweedfs/templates/filer-statefulset.yaml
+++ b/k8s/charts/seaweedfs/templates/filer-statefulset.yaml
@@ -97,6 +97,12 @@ spec:
value: {{ $value | quote }}
{{- end }}
{{- end }}
+ {{- if .Values.filer.secretExtraEnvironmentVars }}
+ {{- range $key, $value := .Values.filer.secretExtraEnvironmentVars }}
+ - name: {{ $key }}
+ valueFrom: {{ toYaml $value | nindent 16 }}
+ {{- end }}
+ {{- end }}
command:
- "/bin/sh"
- "-ec"
diff --git a/k8s/charts/seaweedfs/values.yaml b/k8s/charts/seaweedfs/values.yaml
index 520a003076..1e2801e426 100644
--- a/k8s/charts/seaweedfs/values.yaml
+++ b/k8s/charts/seaweedfs/values.yaml
@@ -407,6 +407,18 @@ filer:
# directories under this folder will be automatically creating a separate bucket
WEED_FILER_BUCKETS_FOLDER: "/buckets"
+
+ # secret env variables
+ secretExtraEnvironmentVars: []
+ # WEED_POSTGRES_USERNAME:
+ # secretKeyRef:
+ # name: postgres-credentials
+ # key: username
+ # WEED_POSTGRES_PASSWORD:
+ # secretKeyRef:
+ # name: postgres-credentials
+ # key: password
+
s3:
enabled: true
port: 8333