zalando / postgres-operator

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

GCS WAL backup config per cluster #2652

Open creckord opened 5 months ago

creckord commented 5 months 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.