From 44d9ace9d1eed09fec8f9728ebac16bc352a6b4f Mon Sep 17 00:00:00 2001 From: Emilien Devos <121870973+edevosc2c@users.noreply.github.com> Date: Mon, 19 Feb 2024 15:37:45 +0100 Subject: [PATCH] add ability to configure nodeport for pgbouncer --- pgbouncer/Chart.yaml | 2 +- pgbouncer/templates/service.yaml | 3 +++ pgbouncer/values.yaml | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pgbouncer/Chart.yaml b/pgbouncer/Chart.yaml index 61a3480..fda0ceb 100644 --- a/pgbouncer/Chart.yaml +++ b/pgbouncer/Chart.yaml @@ -2,4 +2,4 @@ apiVersion: v1 appVersion: "1.18.0" description: A Helm chart installing pgbouncer in kubernetes name: pgbouncer -version: 1.4.3 +version: 1.5.0 diff --git a/pgbouncer/templates/service.yaml b/pgbouncer/templates/service.yaml index 054f4f4..ade6e39 100644 --- a/pgbouncer/templates/service.yaml +++ b/pgbouncer/templates/service.yaml @@ -18,6 +18,9 @@ spec: targetPort: psql protocol: TCP name: psql + {{- if .Values.service.nodePort }} + nodePort: {{ .Values.service.nodePort }} + {{- end }} selector: app.kubernetes.io/name: {{ template "pgbouncer.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} diff --git a/pgbouncer/values.yaml b/pgbouncer/values.yaml index ae38ded..588fedb 100644 --- a/pgbouncer/values.yaml +++ b/pgbouncer/values.yaml @@ -89,6 +89,7 @@ image: service: type: ClusterIP port: 5432 + # nodePort: 30543 # when type NodePort annotations: {} ## Labels to add to the pod metadata