labels:
{{- include "osm.labels" . | nindent 4 }}
spec:
- type: {{ .Values.ngui.service.type }}
+ type: {{ default "ClusterIP" .Values.ngui.service.type }}
ports:
- - nodePort: {{ .Values.ngui.service.nodePort }}
- port: {{ .Values.ngui.service.port }}
+ - port: {{ default 80 .Values.ngui.service.port }}
+ {{- if .Values.ngui.service.nodePort }}
+ nodePort: {{ .Values.ngui.service.nodePort }}
+ {{- end }}
targetPort: 80
protocol: TCP
selector: