Open antonmatsiuk opened 1 year ago
Please, answer some short questions which should help us to understand your problem / question better?
Postgres Operator does not recreate pooler deployment if it existed in the kubernetes cluster before. Steps to reproduce:
postgresqlCluster
numberOfInstances: 3 enableConnectionPooler: true enableMasterLoadBalancer: false enableMasterPoolerLoadBalancer: false postgresql: version: "15"
postgres-ha-pooler
time="2023-10-16T13:55:12Z" level=info msg=" \"Schema\": \"pooler\"," pkg=controller time="2023-10-16T13:55:12Z" level=info msg=" \"User\": \"pooler\"," pkg=controller ... time="2023-10-16T13:55:12Z" level=info msg=" \"ConnectionPoolerDefaultCPURequest\": \"500m\"," pkg=controller time="2023-10-16T13:55:12Z" level=info msg=" \"ConnectionPoolerDefaultMemoryRequest\": \"100Mi\"," pkg=controller time="2023-10-16T13:55:12Z" level=info msg=" \"ConnectionPoolerDefaultCPULimit\": \"1000m\"," pkg=controller time="2023-10-16T13:55:12Z" level=info msg=" \"ConnectionPoolerDefaultMemoryLimit\": \"512Mi\"," pkg=controller ... time="2023-10-16T13:55:12Z" level=info msg=" \"EnableMasterPoolerLoadBalancer\": false," pkg=controller time="2023-10-16T13:55:12Z" level=info msg=" \"EnableReplicaPoolerLoadBalancer\": false," pkg=controller ... time="2023-10-16T13:55:13Z" level=warning msg="could not connect to Postgres database: dial tcp 172.20.205.79:5432: connect: connection refused"
Expected behavior: Postgres operator recreates pooler deployment and service properly.
any update on this?
Please, answer some short questions which should help us to understand your problem / question better?
Postgres Operator does not recreate pooler deployment if it existed in the kubernetes cluster before. Steps to reproduce:
postgresqlCluster
with the following parameters:postgres-ha-pooler
Deployment and Kubernetes service are missing. Postgres pods fail to start without pooler. Postgres operator related logs are:time="2023-10-16T13:55:12Z" level=info msg=" \"Schema\": \"pooler\"," pkg=controller time="2023-10-16T13:55:12Z" level=info msg=" \"User\": \"pooler\"," pkg=controller ... time="2023-10-16T13:55:12Z" level=info msg=" \"ConnectionPoolerDefaultCPURequest\": \"500m\"," pkg=controller time="2023-10-16T13:55:12Z" level=info msg=" \"ConnectionPoolerDefaultMemoryRequest\": \"100Mi\"," pkg=controller time="2023-10-16T13:55:12Z" level=info msg=" \"ConnectionPoolerDefaultCPULimit\": \"1000m\"," pkg=controller time="2023-10-16T13:55:12Z" level=info msg=" \"ConnectionPoolerDefaultMemoryLimit\": \"512Mi\"," pkg=controller ... time="2023-10-16T13:55:12Z" level=info msg=" \"EnableMasterPoolerLoadBalancer\": false," pkg=controller time="2023-10-16T13:55:12Z" level=info msg=" \"EnableReplicaPoolerLoadBalancer\": false," pkg=controller ... time="2023-10-16T13:55:13Z" level=warning msg="could not connect to Postgres database: dial tcp 172.20.205.79:5432: connect: connection refused"