Skip to content

When creating new PerconaPGCluster pgbouncer is always deployed, even if not specified #935

Open
@Kajot-dev

Description

@Kajot-dev

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

  1. Create new PerconaPGCLuster
    For 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
  1. Observe pgbouncer being deployed
  2. Create exact same (but with a different name) cluster using PostgresCluster CR directly and you'll see no pbbouncer deployed

Versions

  1. Kubernetes 1.28
  2. Operator 2.5.0
  3. Database 16.4

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions