Run all components in one namespace
[oom.git] / kubernetes / uui / templates / all-services.yaml
index 2771905..173fc77 100644 (file)
@@ -1,10 +1,11 @@
+#{{ if not .Values.disableUuiUui }}
 apiVersion: v1
 kind: Service
 metadata:
   labels:
     app: uui
   name: uui
-  namespace: "{{ .Values.nsPrefix }}-uui"
+  namespace: "{{ .Values.nsPrefix }}"
   annotations:
     msb.onap.org/service-info: '[
       {
@@ -24,3 +25,33 @@ spec:
   selector:
     app: uui
   type: NodePort
+#{{ end }}
+#{{ if not .Values.disableUuiServer }}
+---
+apiVersion: v1
+kind: Service
+metadata:
+  labels:
+    app: uui-server
+  name: uui-server
+  namespace: "{{ .Values.nsPrefix }}"
+  annotations:
+    msb.onap.org/service-info: '[
+      {
+          "serviceName": "usecaseui-server",
+          "version": "v1",
+          "url": "/api/usecaseui/server/v1",
+          "protocol": "UI"
+          "port": "8080",
+          "visualRange":"1|0"
+      }
+      ]'
+spec:
+  ports:
+  - name: uui-server
+    nodePort: {{ .Values.uuiPortPrefix }}99
+    port: 8082
+  selector:
+    app: uui-server
+  type: NodePort
+#{{ end }}
\ No newline at end of file