mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
trying to get anonymous access for buckets working
This commit is contained in:
parent
ac6158818b
commit
f33f7c10f0
|
@ -50,11 +50,18 @@ spec:
|
||||||
- "/bin/sh"
|
- "/bin/sh"
|
||||||
- "-ec"
|
- "-ec"
|
||||||
- |
|
- |
|
||||||
{{- range $.Values.filer.s3.createBuckets }}
|
{{- range $reg, $props := $.Values.filer.s3.createBuckets }}
|
||||||
exec /bin/echo \
|
exec /bin/echo \
|
||||||
"s3.bucket.create --name {{ . }}" |\
|
"s3.bucket.create --name {{ $props.name }}" |\
|
||||||
/usr/bin/weed shell
|
/usr/bin/weed shell
|
||||||
{{- end }}
|
{{- 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:
|
ports:
|
||||||
- containerPort: {{ .Values.master.port }}
|
- containerPort: {{ .Values.master.port }}
|
||||||
name: swfs-master
|
name: swfs-master
|
||||||
|
|
|
@ -579,12 +579,14 @@ filer:
|
||||||
# You may specify buckets and users to be created during the install process
|
# 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:
|
# The user's credentials must be in an existing secret using the key names:
|
||||||
# 'ACCESS_KEY_ID' and 'ACCESS_SECRET_KEY'
|
# 'ACCESS_KEY_ID' and 'ACCESS_SECRET_KEY'
|
||||||
#createBuckets:
|
# createBuckets:
|
||||||
# - bucket-a
|
# - name: bucket-a
|
||||||
# - bucket-b
|
# anonymousRead: true
|
||||||
|
# - name: bucket-b
|
||||||
|
# anonymousRead: false
|
||||||
# createUsers:
|
# createUsers:
|
||||||
# - name: friend
|
# - name: friend
|
||||||
# actions: "read,write,list"
|
# actions: "Read,Write,List"
|
||||||
# buckets: "bucket-b"
|
# buckets: "bucket-b"
|
||||||
# secretName: friend_s3_creds
|
# secretName: friend_s3_creds
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue