Helm chart: Add the ability to define the node port to use when service is NodePort. Default is 32400.

This commit is contained in:
alphayax 2024-01-27 10:32:45 +01:00 committed by Gaston Festari
parent 0cd70b54e0
commit c8fa8afcbd
2 changed files with 6 additions and 0 deletions

View File

@ -13,6 +13,9 @@ spec:
ports:
- port: {{ .Values.service.port }}
targetPort: 32400
{{- if eq .Values.service.type "NodePort" }}
nodePort: {{ default "32400" .Values.service.nodePort }}
{{- end }}
protocol: TCP
name: pms
selector:

View File

@ -144,6 +144,9 @@ service:
type: ClusterIP
port: 32400
# Port to use when type of service is "NodePort" (32400 by default)
#nodePort: 32400
# optional extra annotations to add to the service resource
annotations: {}