Description
Describe the bug
Cannot configure the S3 blocks storage endpoint to point to a non-dualstack endpoint. In our config we have the blocks_storage.s3.endpoint
set to s3.us-east-1.amazonaws.com
. However, we observe the Cortex pods only reaching out to <bucket name>.s3.dualstack.us-east-1.amazonaws.com
.
To Reproduce
Steps to reproduce the behavior:
- Start Cortex (v1.18.1)
- In the config, set the
blocks_storage.s3.endpoint
to a non-dualstack endpoint such ass3.us-east-1.amazonaws.com
- Send data to Cortex
- Observe that the endpoint the pods are connecting to is still
<bucket name>.s3.dualstack.us-east-1.amazonaws.com
Expected behavior
We would expect Cortex to support hitting this non-dualstack endpoint. If we configure the endpoint as s3.us-east-1.amazonaws.com
, Cortex should hit <bucket name>.s3.us-east-1.amazonaws.com
.
Environment:
- Infrastructure: Kubernetes
- Deployment tool: helm
Additional Context
Minio does support this configuration (minio/minio-go#1945) as of v7.0.69 which is available in Cortex 1.17.1 and up. The value defaults to true for backwards compatibility. This function should allow the configuration of this option.