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.

add a sercret volume mount

Max Roby2af6b1380009
diff --git a/k8s/charts/seaweedfs/templates/post-install-bucket-hook.yaml b/k8s/charts/seaweedfs/templates/post-install-bucket-hook.yaml
index fe89d7845c..a5fc6f81cf 100644
--- a/k8s/charts/seaweedfs/templates/post-install-bucket-hook.yaml
+++ b/k8s/charts/seaweedfs/templates/post-install-bucket-hook.yaml
@@ -76,6 +76,17 @@ spec:
{{- if .Values.master.readinessProbe.enabled }}
{{- $hostpath_exists := include "master.hostpath_exists" . -}}
{{- $existing_claims := include "master.existing_claims" . -}}
+ {{- if .Values.filer.s3.enableAuth }}
+ volumes:
+ - name: config-users
+ secret:
+ defaultMode: 420
+ {{- if .Values.filer.s3.existingConfigSecret }}
+ secretName: {{ .Values.filer.s3.existingConfigSecret }}
+ {{- else }}
+ secretName: seaweedfs-s3-secret
+ {{- end }}
+ {{- end }}
{{- end }}
{{- end }}
{{- end }}