SeaweedFS¶
Bucket¶
Credentials¶
Identity¶
PolicyBinding¶
s3-policy-binding.yaml
apiVersion: seaweed.seaweedfs.com/v1
kind: S3PolicyBinding
metadata:
name: <NAME>-policy-binding
namespace: <NAMESPACE>
spec:
seaweedRef:
name: seaweed-production
namespace: seaweedfs
policyRef:
name: <NAME>-policy
subjects:
- kind: S3Identity
name: <NAME>-user
reclaimPolicy: Retain
s3-policy-binding.yaml
apiVersion: seaweed.seaweedfs.com/v1
kind: S3PolicyBinding
metadata:
name: starships-policy-binding
namespace: starfleet
spec:
seaweedRef:
name: seaweed-production
namespace: seaweedfs
policyRef:
name: starships-policy
subjects:
- kind: S3Identity
name: starships-user
reclaimPolicy: Retain
Policy¶
s3-policy.yaml
apiVersion: seaweed.seaweedfs.com/v1
kind: S3Policy
metadata:
name: <NAME>-policy
namespace: <NAMESPACE>
spec:
seaweedRef:
name: seaweed-production
namespace: seaweedfs
reclaimPolicy: Retain
statements:
- effect: Allow
actions:
- s3:ListBucket
resources:
- <NAME>-media
- effect: Allow
actions:
- s3:GetObject
- s3:PutObject
- s3:DeleteObject
resources:
- <NAME>-media/*
s3-policy.yaml
apiVersion: seaweed.seaweedfs.com/v1
kind: S3Policy
metadata:
name: starships-policy
namespace: starfleet
spec:
seaweedRef:
name: seaweed-production
namespace: seaweedfs
reclaimPolicy: Retain
statements:
- effect: Allow
actions:
- s3:ListBucket
resources:
- starships-media
- effect: Allow
actions:
- s3:GetObject
- s3:PutObject
- s3:DeleteObject
resources:
- starships-media/*