Rename S3 bucket#
Procedure#
Deploy Prometheus without Thanos-Sidecar container#
You have to :
- comment
thanosBucketSecretin flavorMap inkube-prometheus-stack.cue - redeploy prometheus with Trackbone
Copy S3 bucket#
s3cmd mb s3://<new_bucket_name>
s3cmd cp --recursive s3://<old_bucket_name> s3://<new_bucket_name>
Verify S3 bucket#
s3cmd du -H s3://<old_bucket_name>
s3cmd du -H s3://<new_bucket_name>
Deploy Thanos with new bucket#
You have to :
- change bucket name in
thanos.cue - redeploy Thanos with Trackbone
Note
Make sure that vault is up to date with the correct secret
Deploy Prometheus with Thanos-Sidecar container#
You have to :
- uncomment
thanosBucketSecretin flavorMap inkube-prometheus-stack.cue - update BucketSecret and BucketName
- redeploy Prometheus with Trackbone
Remove old S3 bucket#
s3cmd del --force --recursive s3://<old_bucket_name>
s3cmd rb s3://<old_bucket_name>