zalando / postgres-operator

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

Logical Backup not working behind proxy #1611

Open hz47 opened 3 years ago

hz47 commented 3 years ago

When running Backup job behind proxy Logical Backup container is not able to upload the update to S3

upload failed: - to s3://*************/spilo/*****-postgresql/ac6a170b-9817-4fa8-afe8-041e86e20cfe/logical_backups/1630899622.sql.gz Connect timeout on endpoint URL: "https://*************/*****-postgres-operator-backup/spilo/*****-postgresql/ac6a170b-9817-4fa8-afe8-041e86e20cfe/logical_backups/1630899622.sql.gz?uploads"

Looking at the code there is no option to set up ENV for the proxy.

stephan2012 commented 2 years ago

Just hit the same issue. K8s with the Postgres Operator runs locally and shall backup to an AWS S3 backup but Internet connection is possible via proxy only. While it is possible to add http_proxy, https_proxy, and no_proxy to pod_environment_configmap, these variables become available for the root user only.

stephan2012 commented 2 years ago

This is actually a Spilo issue, I think. So we should raise it there.

CyberDem0n commented 2 years ago

@stephan2012 Spilo never deals with logical backups.