Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Kajot-dev opened this issue Oct 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Kajot-dev
Copy link

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

@Kajot-dev Kajot-dev added the bug Something isn't working label Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant