Skip to content

Commit

Permalink
update (#5075)
Browse files Browse the repository at this point in the history
  • Loading branch information
nowinkeyy authored Sep 19, 2024
1 parent febe93b commit 570c1a0
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 5 deletions.
1 change: 1 addition & 0 deletions deploy/objectstorage/Kubefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ ENV minioStorageSize=${minioStorageSize:-1Gi}
ENV promStorageSize=${promStorageSize:-1Gi}
ENV minioAdminUser=${minioAdminUser:-"username"}
ENV minioAdminPassword=${minioAdminPassword:-"passw0rd"}
ENV minioKubeblocksPassword=${minioAdminPassword:-"kubeblocks"}

CMD ["bash scripts/init.sh"]
14 changes: 10 additions & 4 deletions deploy/objectstorage/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# sealos cloud object storage cluster image
## prepare

1. install minio operator
2. install prometheus operator
3. run object storage cluster image
## version

date: 2024.9.10

## components

1. minio
2. minio monitor service
3. objectstorage controller
4. objectstorage frontend
20 changes: 20 additions & 0 deletions deploy/objectstorage/etc/minio/policy/kubeblocks.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,26 @@
"Resource": [
"arn:aws:s3:::file-backup/*"
]
},
{
"Effect": "Allow",
"Action": [
"s3:DeleteObject",
"s3:GetBucketTagging",
"s3:GetObject",
"s3:ListBucket",
"s3:PutBucketTagging",
"s3:AbortMultipartUpload",
"s3:CreateBucket",
"s3:GetBucketLocation",
"s3:GetBucketPolicy",
"s3:ListBucketMultipartUploads",
"s3:ListMultipartUploadParts",
"s3:PutObject"
],
"Resource": [
"arn:aws:s3:::cockroaches-*"
]
}
]
}
1 change: 1 addition & 0 deletions deploy/objectstorage/manifests/minio/deploy.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ metadata:
name: object-storage-api
namespace: objectstorage-system
annotations:
higress.io/response-header-control-update: Content-Disposition attachment
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/proxy-body-size: 3g
nginx.ingress.kubernetes.io/server-snippet: |
Expand Down
2 changes: 1 addition & 1 deletion deploy/objectstorage/scripts/minio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function init_minio() {
mc admin policy create objectstorage userNormal etc/minio/policy/user_normal.json
mc admin policy create objectstorage userDenyWrite etc/minio/policy/user_deny_write.json
mc admin policy create objectstorage kubeblocks etc/minio/policy/kubeblocks.json
mc admin user add objectstorage kubeblocks sealos.12345
mc admin user add objectstorage kubeblocks ${minioKubeblocksPassword}
mc admin user add objectstorage testuser sealos2023
mc admin group add objectstorage userNormal testuser
mc admin group add objectstorage userDenyWrite testuser
Expand Down

0 comments on commit 570c1a0

Please sign in to comment.