mirror of
https://github.com/auricom/home-cluster.git
synced 2025-12-22 15:36:45 +01:00
| datasource | package | from | to | | ---------- | ------- | ------ | ------- | | helm | thanos | 12.9.1 | 12.10.1 |
Development
thanos
S3 Configuration
-
Create
~/.mc/config.json{ "version": "10", "aliases": { "minio": { "url": "https://s3.<domain>", "accessKey": "<access-key>", "secretKey": "<secret-key>", "api": "S3v4", "path": "auto" } } } -
Create the thanos user and password
mc admin user add minio thanos <super-secret-password> -
Create the thanos bucket
mc mb minio/thanos -
Create
thanos-user-policy.json{ "Version": "2012-10-17", "Statement": [ { "Action": [ "s3:ListBucket", "s3:PutObject", "s3:GetObject", "s3:DeleteObject" ], "Effect": "Allow", "Resource": ["arn:aws:s3:::thanos/*", "arn:aws:s3:::thanos"], "Sid": "" } ] } -
Apply the bucket policies
mc admin policy add minio thanos-private thanos-user-policy.json -
Associate private policy with the user
mc admin policy set minio thanos-private user=thanos