fix: allow setting of nodeport

This commit is contained in:
jon4hz
2022-12-28 15:25:47 +01:00
parent 21439761c3
commit da5800c268
2 changed files with 6 additions and 0 deletions

View File

@ -48,3 +48,6 @@ spec:
- protocol: TCP
port: 3000 # service
targetPort: 3000 # container port
{{- if eq .Values.frontend.service.type "NodePort" }}
nodePort: {{ .Values.frontend.service.nodePort }}
{{- end }}

View File

@ -11,7 +11,10 @@ frontend:
tag: "latest"
# kubeSecretRef: some-kube-secret-name
service:
# type of the frontend service
type: ClusterIP
# define the nodePort if service type is NodePort
# nodePort:
backend:
replicaCount: 1