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

Backup job images service account auth to access s3 buckets due to outdated awscli #2629

Open alexkuklin opened 1 month ago

alexkuklin commented 1 month ago

We are using role-based auth and pod identity agent to provide access to resources required and switching to logical backup for some resources.

While running logical backup cronjob, it fails with

Unsupported host '169.254.170.23'.  Can only retrieve metadata from these hosts: 169.254.170.2, localhost, 127.0.0.1

generally issue can be solved by installing awscli from binary.

FxKu commented 1 month ago

Hi @alexkuklin can you create a PR which changes installation of awscli (and maybe others CLIs, too) in the logical backup's docker file? You got the same problem with the 1.11.0 image, too? You can change it in the configuration (logical_backup_docker_image) to test.