Files
auricom-home-cluster/kubernetes/apps/monitoring/thanos/app
feisar-bot[bot] 014270da95 ⬆️ Update thanos ( 1.19.1 → 1.19.2 )
| datasource | package                                 | from   | to     |
| ---------- | --------------------------------------- | ------ | ------ |
| docker     | ghcr.io/stevehipwell/helm-charts/thanos | 1.19.1 | 1.19.2 |
2024-12-12 02:23:33 +01:00
..
2024-12-12 02:23:33 +01:00

Development

thanos

S3 Configuration

  1. Create ~/.mc/config.json

    {
        "version": "10",
        "aliases": {
            "minio": {
                "url": "https://s3.<domain>",
                "accessKey": "<access-key>",
                "secretKey": "<secret-key>",
                "api": "S3v4",
                "path": "auto"
            }
        }
    }
    
  2. Create the thanos user and password

    mc admin user add minio thanos <super-secret-password>
    
  3. Create the thanos bucket

    mc mb minio/thanos
    
  4. 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": ""
            }
        ]
    }
    
  5. Apply the bucket policies

    mc admin policy add minio thanos-private thanos-user-policy.json
    
  6. Associate private policy with the user

    mc admin policy set minio thanos-private user=thanos