Merge pull request #6 from Intreecom/feature/nodeport-service-type

feature/nodeport service type
This commit is contained in:
Dev Jadeja
2025-02-05 20:20:47 +05:30
committed by GitHub
3 changed files with 9 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

View File

@ -12,6 +12,9 @@ spec:
targetPort: http
protocol: TCP
name: http
{{- if eq .Values.service.type "NodePort" }}
nodePort: {{ .Values.service.nodePort }}
{{- end }}
selector:
{{- include "py-app.selectorLabels" . | nindent 4 }}
deployment_type: web