zalando / postgres-operator

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

Ability to provide imagePullSecret for internal Spilo images #2107

Open DARB-CCM-S-20 opened 1 year ago

DARB-CCM-S-20 commented 1 year ago

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

When override the default spilo docker_image parameter there is no option to provide any imagePullSecrets for fetching this image. As a result, if you try to pull from a private registry then the Postgres pods end up in ImagePullBackOff

jurim76 commented 1 year ago

There is some hack to enable imagePullSecrets Define in postgresql-operator-default-configuration.yaml kubernetes: pod_service_account_definition: '{ "apiVersion": "v1", "kind": "ServiceAccount", "metadata": { "name": "postgres-pod" }, "imagePullSecrets": [ { "name": "secret" } ] }

yevon commented 1 year ago

I just did came across with this problem, this just prevents zalando operator from being used in private registries. Any news about this? I just assumed that it would use the image.imagePullSecrets for all docker images from the chart but it was not the case.

starizard commented 1 year ago

+1, Is there any way to set the imagePullSecret if we are using custom spilo images?