zalando / postgres-operator

Postgres operator creates and manages PostgreSQL clusters running in Kubernetes
https://postgres-operator.readthedocs.io/
MIT License
4.11k stars 949 forks source link

GCS WAL backup config per cluster #2652

Open creckord opened 1 month ago

creckord commented 1 month ago

Please, answer some short questions which should help us to understand your problem / question better?

The Postgres Operator documentation lists two ways to configure GCS access for WAL backups. However, both are global configurations at the operator level.

Is there a way to configure the WALG_GS_PREFIX (and possibly the service account or key.json) at postgres cluster level?

We previously backed up to MinIO using the Postgres S3 config. Here, I was able to set the bucket at cluster level by defining the WAL_S3_BUCKET env variable. Similarly setting WALG_GS_PREFIX in the postgres resource does not seem to work.