feature: added compatibility of nodeport service type

This commit is contained in:
Dev Jadeja
2025-02-05 20:15:09 +05:30
parent 0982ed7716
commit 8af820d6ad
2 changed files with 6 additions and 0 deletions

View File

@ -11,5 +11,8 @@ spec:
targetPort: pg
protocol: TCP
name: pg
{{- if eq .Values.service.type "NodePort" }}
nodePort: {{ .Values.service.nodePort }}
{{- end }}
selector:
{{- include "pgbouncer.selectorLabels" . | nindent 4 }}

View File

@ -64,9 +64,12 @@ securityContext: {}
# This is for setting up a service more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/
service:
# This sets the service type more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
# allowed values: ClusterIP (default), NodePort
type: ClusterIP
# This sets the ports more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/#field-spec-ports
port: 5432
# nodePort property is required when the .Values.service.type is NodePort
# nodePort: "35432"
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious