Merge "Exposed 8080 and 9090 ports in onap-cli"
[oom.git] / kubernetes / policy / templates / all-services.yaml
index 0d9a68a..5c5f683 100644 (file)
@@ -1,3 +1,4 @@
+#{{ if not .Values.disablePolicyMariadb }}
 apiVersion: v1
 kind: Service
 metadata:
@@ -12,6 +13,8 @@ spec:
   selector:
     app: mariadb
   clusterIP: None
+#{{ end }}
+#{{ if not .Values.disablePolicyNexus }}
 ---
 apiVersion: v1
 kind: Service
@@ -27,6 +30,8 @@ spec:
   selector:
     app: nexus
   clusterIP: None
+#{{ end }}
+#{{ if not .Values.disablePolicyDrools }}
 ---
 apiVersion: v1
 kind: Service
@@ -40,9 +45,14 @@ spec:
   - name: "drools-port"
     port: 6969
     nodePort: {{ .Values.nodePortPrefix }}17
+  - name: "drools-port2"
+    port: 9696
+    nodePort: {{ .Values.nodePortPrefix }}21
   selector:
     app: drools
   type: NodePort
+#{{ end }}
+#{{ if not .Values.disablePolicyPap }}
 ---
 apiVersion: v1
 kind: Service
@@ -62,6 +72,8 @@ spec:
   selector:
     app: pap
   type: NodePort
+#{{ end }}
+#{{ if not .Values.disablePolicyPdp }}
 ---
 apiVersion: v1
 kind: Service
@@ -76,7 +88,7 @@ metadata:
           "serviceName": "policy-pdp",
           "version": "v1",
           "url": "/pdp",
-          "protocol": "REST"
+          "protocol": "REST",
           "port": "8081",
           "visualRange":"1"
       },
@@ -84,7 +96,7 @@ metadata:
           "serviceName": "policy-pdp-deprecated",
           "version": "v1",
           "url": "/pdp",
-          "protocol": "REST"
+          "protocol": "REST",
           "port": "8081",
           "visualRange":"1",
           "path":"/pdp"
@@ -98,6 +110,8 @@ spec:
   selector:
     app: pdp
   type: NodePort
+#{{ end }}
+#{{ if not .Values.disablePolicyBrmsgw }}
 ---
 apiVersion: v1
 kind: Service
@@ -114,3 +128,4 @@ spec:
   selector:
     app: brmsgw
   type: NodePort
+#{{ end }}
\ No newline at end of file