From 2f275ed5b9a55182f0bba288fe2b84830655af1f Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Tue, 22 Oct 2024 22:34:49 -0500 Subject: [PATCH] add lb to pgbouncer --- .../crunchy-postgres-operator/cluster/postgrescluster.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kubernetes/apps/database/crunchy-postgres-operator/cluster/postgrescluster.yaml b/kubernetes/apps/database/crunchy-postgres-operator/cluster/postgrescluster.yaml index b8796e59..a1aecae5 100644 --- a/kubernetes/apps/database/crunchy-postgres-operator/cluster/postgrescluster.yaml +++ b/kubernetes/apps/database/crunchy-postgres-operator/cluster/postgrescluster.yaml @@ -193,6 +193,12 @@ spec: pgBouncer: port: 5432 replicas: *replica + service: + type: LoadBalancer + metadata: + annotations: + external-dns.alpha.kubernetes.io/hostname: pgbouncer.jahanson.tech + io.cilium/lb-ipam-ips: 10.1.1.36 metadata: labels: app.kubernetes.io/name: crunchy-postgres-pgbouncer