Feature 11037 Installation of ingress controller in OSM community installer
[osm/devops.git] / installers / helm / osm / templates / nbi / nbi-service.yaml
index 0ea6433..bb42f42 100644 (file)
@@ -22,10 +22,12 @@ metadata:
   labels:
     {{- include "osm.labels" . | nindent 4 }}
 spec:
-  type: {{ .Values.nbi.service.type }}
+  type: {{ default "ClusterIP" .Values.nbi.service.type }}
   ports:
-    - nodePort: {{ .Values.nbi.service.nodePort }}
-      port: {{ .Values.nbi.service.port }}
+    - port: {{ default 9999 .Values.nbi.service.port }}
+    {{- if .Values.nbi.service.nodePort }}
+      nodePort: {{ .Values.nbi.service.nodePort }}
+    {{- end }}
       targetPort: 9999
       protocol: TCP
   selector: