Skip to content

Conversation

@tghartland
Copy link

Fixes #785

  • Support setting the pooler.spec.pgbouncer TLS configuration fields.
  • Support setting the pooler.serviceTemplate field to override the Service configuration for the pooler.

Combining these options allows the chart to deploy a Pooler with a LoadBalancer service, using a TLS certificate that will be valid for clients connecting from outside of the kubernetes cluster.

Example:

poolers:
  - name: external
    type: rw
    poolMode: session
    instances: 1
    clientTLSSecret:
      name: letsencrypt-testdb
    serviceTemplate:
      spec:
        type: LoadBalancer
        loadBalancerIP: .........

The other client/service TLS/CA secret fields are added to the template for completeness.

@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. chart( cluster ) Related to the cluster chart labels Jan 21, 2026
To be able to configure the pgbouncer spec
with these fields, pass them through from
the values to the templated spec, if provided.

Signed-off-by: Thomas Hartland <thomas.hartland@diamond.ac.uk>
Needed to be able to set the type of the
pooler service to be a LoadBalancer.

Signed-off-by: Thomas Hartland <thomas.hartland@diamond.ac.uk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chart( cluster ) Related to the cluster chart size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[cluster] Support pooler pgbouncer client/server TLS configuration

1 participant