Feature 11037 Installation of ingress controller in OSM community installer
[osm/devops.git] / installers / helm / osm / templates / ng_ui / ngui-service.yaml
index d2eb22c..212d259 100644 (file)
@@ -22,10 +22,12 @@ metadata:
   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: