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.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
trying to get anonymous access for buckets working
Max Robyf33f7c10f078
diff --git a/k8s/charts/seaweedfs/templates/post-install-bucket-hook.yaml b/k8s/charts/seaweedfs/templates/post-install-bucket-hook.yamlindex 6b0ce5f80a..e375ab6783 100644--- a/k8s/charts/seaweedfs/templates/post-install-bucket-hook.yaml+++ b/k8s/charts/seaweedfs/templates/post-install-bucket-hook.yaml@@ -50,11 +50,18 @@ spec:- "/bin/sh"- "-ec"- |- {{- range $.Values.filer.s3.createBuckets }}+ {{- range $reg, $props := $.Values.filer.s3.createBuckets }}exec /bin/echo \- "s3.bucket.create --name {{ . }}" |\+ "s3.bucket.create --name {{ $props.name }}" |\/usr/bin/weed shell{{- end }}+ {{- range $reg, $props := $.Values.filer.s3.createBuckets }}+ {{- if $props.anonymousRead }}+ exec /bin/echo \+ "s3.configure --user anonymous --buckets {{ $props.name }}" |\+ /usr/bin/weed shell+ {{- end }}+ {{- end }}ports:- containerPort: {{ .Values.master.port }}name: swfs-masterdiff --git a/k8s/charts/seaweedfs/values.yaml b/k8s/charts/seaweedfs/values.yamlindex 5f2359250b..0a76a4436c 100644--- a/k8s/charts/seaweedfs/values.yaml+++ b/k8s/charts/seaweedfs/values.yaml@@ -579,12 +579,14 @@ filer:# You may specify buckets and users to be created during the install process# The user's credentials must be in an existing secret using the key names:# 'ACCESS_KEY_ID' and 'ACCESS_SECRET_KEY'- #createBuckets:- # - bucket-a- # - bucket-b+ # createBuckets:+ # - name: bucket-a+ # anonymousRead: true+ # - name: bucket-b+ # anonymousRead: false# createUsers:# - name: friend- # actions: "read,write,list"+ # actions: "Read,Write,List"# buckets: "bucket-b"# secretName: friend_s3_creds