Skip to content

Commit

Permalink
add ability to configure nodeport for pgbouncer
Browse files Browse the repository at this point in the history
  • Loading branch information
edevosc2c committed Feb 19, 2024
1 parent 73c2391 commit 44d9ace
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pgbouncer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions pgbouncer/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
1 change: 1 addition & 0 deletions pgbouncer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ image:
service:
type: ClusterIP
port: 5432
# nodePort: 30543 # when type NodePort
annotations: {}

## Labels to add to the pod metadata
Expand Down

0 comments on commit 44d9ace

Please sign in to comment.