percona-postgresql-operator
percona-postgresql-operator copied to clipboard
When creating new `PerconaPGCluster` pgbouncer is always deployed, even if not specified
Report
When deploying new PerconaPGCluster without the proxy section altogether, underlying PostgresCluster has pgbouncer defined with exactly one replica - but it should be not deployed at all.
Behavior is correct when using PostgresCluster directly or when migrating from an existing PostgresCluster to PerconaPGCluster (pgbouncer is not deployed)
More about the problem
Pgbouncer is deployed with one replica, even though pgbouncer configuration was not specified at all
Steps to reproduce
- Create new
PerconaPGCLusterFor example:
metadata:
name: test-pg
namespace: test-ns
spec:
backups:
pgbackrest:
repos:
- name: repo1
volume:
volumeClaimSpec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 2Gi
instances:
- dataVolumeClaimSpec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 2Gi
name: test
replicas: 2
port: 5432
postgresVersion: 16
- Observe pgbouncer being deployed
- Create exact same (but with a different name) cluster using
PostgresClusterCR directly and you'll see no pbbouncer deployed
Versions
- Kubernetes 1.28
- Operator 2.5.0
- Database 16.4
Anything else?
No response
hi @Kajot-dev, it is impossible for now to deploy the cluster without pgbouncer
@hors Thanks, yes I'm aware, that's exactly what my issue is about. It's possible to deploy it without pgbouncer by using PostgresCluster (upstream one from PGO) CRD directly, but not when using Percona flavored resource.
thanks for raising this, we prepared a ticket for supporting this: https://perconadev.atlassian.net/browse/K8SPG-863