enable ssl propery should be bool
[oom.git] / kubernetes / aai / templates / all-services.yaml
index 63b9b00..5d1c09e 100644 (file)
@@ -1,3 +1,4 @@
+#{{ if not .Values.disableAaiHbase }}
 apiVersion: v1
 kind: Service
 metadata:
@@ -24,6 +25,8 @@ spec:
   selector:
     app: hbase
   clusterIP: None
+#{{ end }}
+#{{ if not .Values.disableAaiAaiService }}
 ---
 apiVersion: v1
 kind: Service
@@ -36,118 +39,118 @@ metadata:
     msb.onap.org/service-info: '[
       {
           "serviceName": "aai-cloudInfrastructure",
-          "version": "v1",
-          "url": "/cloud-infrastructure",
+          "version": "v11",
+          "url": "/aai/v11/cloud-infrastructure",
           "protocol": "REST",
           "port": "8443",
-          "enable_ssl":"True",
-          "visualRange":"1"
+          "enable_ssl": true,
+          "visualRange": "1"
       },
       {
           "serviceName": "aai-cloudInfrastructure-deprecated",
-          "version": "v1",
-          "url": "/cloud-infrastructure",
+          "version": "v11",
+          "url": "/aai/v11/cloud-infrastructure",
           "protocol": "REST",
           "port": "8443",
-          "enable_ssl":"True",
-          "visualRange":"1",
-          "path":"/cloud-infrastructure"
+          "enable_ssl": true,
+          "visualRange": "1",
+          "path": "/aai/v11/cloud-infrastructure"
       },
       {
           "serviceName": "aai-business",
-          "version": "v1",
-          "url": "/business",
+          "version": "v11",
+          "url": "/aai/v11/business",
           "protocol": "REST",
           "port": "8443",
-          "enable_ssl":"True",
-          "visualRange":"1"
+          "enable_ssl": true,
+          "visualRange": "1"
       },
       {
           "serviceName": "aai-business-deprecated",
-          "version": "v1",
-          "url": "/business",
+          "version": "v11",
+          "url": "/aai/v11/business",
           "protocol": "REST",
           "port": "8443",
-          "enable_ssl":"True",
-          "visualRange":"1",
-          "path":"/business"
+          "enable_ssl": true,
+          "visualRange": "1",
+          "path": "/aai/v11/business"
       },
       {
           "serviceName": "aai-search",
-          "version": "v1",
-          "url": "/search",
+          "version": "v11",
+          "url": "/aai/v11/search",
           "protocol": "REST",
           "port": "8443",
-          "enable_ssl":"True",
-          "visualRange":"1"
+          "enable_ssl": true,
+          "visualRange": "1"
       },
       {
           "serviceName": "aai-search-deprecated",
-          "version": "v1",
-          "url": "/search",
+          "version": "v11",
+          "url": "/aai/v11/search",
           "protocol": "REST",
           "port": "8443",
-          "enable_ssl":"True",
-          "visualRange":"1",
-          "path":"/search"
+          "enable_ssl": true,
+          "visualRange": "1",
+          "path": "/aai/v11/search"
       },
       {
           "serviceName": "aai-actions",
-          "version": "v1",
-          "url": "/actions",
+          "version": "v11",
+          "url": "/aai/v11/actions",
           "protocol": "REST",
           "port": "8443",
-          "enable_ssl":"True",
-          "visualRange":"1"
+          "enable_ssl": true,
+          "visualRange": "1"
       },
       {
           "serviceName": "aai-actions-deprecated",
-          "version": "v1",
-          "url": "/actions",
+          "version": "v11",
+          "url": "/aai/v11/actions",
           "protocol": "REST",
           "port": "8443",
-          "enable_ssl":"True",
-          "visualRange":"1",
-          "path":"/actions"
+          "enable_ssl": true,
+          "visualRange": "1",
+          "path": "/aai/v11/actions"
       },
       {
           "serviceName": "aai-service-design-and-creation",
-          "version": "v1",
-          "url": "/service-design-and-creation",
+          "version": "v11",
+          "url": "/aai/v11/service-design-and-creation",
           "protocol": "REST",
           "port": "8443",
-          "enable_ssl":"True",
-          "visualRange":"1"
+          "enable_ssl": true,
+          "visualRange": "1"
       },
       {
           "serviceName": "aai-service-design-and-creation-deprecated",
-          "version": "v1",
-          "url": "/service-design-and-creation",
+          "version": "v11",
+          "url": "/aai/v11/service-design-and-creation",
           "protocol": "REST",
           "port": "8443",
-          "enable_ssl":"True",
-          "visualRange":"1",
-          "path":"/service-design-and-creation"
+          "enable_ssl": true,
+          "visualRange": "1",
+          "path": "/aai/v11/service-design-and-creation"
       },
       {
           "serviceName": "aai-network",
-          "version": "v1",
-          "url": "/network",
+          "version": "v11",
+          "url": "/aai/v11/network",
           "protocol": "REST",
           "port": "8443",
-          "enable_ssl":"True",
-          "visualRange":"1"
+          "enable_ssl": true,
+          "visualRange": "1"
       },
       {
           "serviceName": "aai-network-deprecated",
-          "version": "v1",
-          "url": "/network",
+          "version": "v11",
+          "url": "/aai/v11/network",
           "protocol": "REST",
           "port": "8443",
-          "enable_ssl":"True",
-          "visualRange":"1",
-          "path":"/network"
-      }             
+          "enable_ssl": true,
+          "visualRange": "1",
+          "path": "/aai/v11/network"
+      }
       ]'
 spec:
   ports:
@@ -162,6 +165,8 @@ spec:
   type: NodePort
   selector:
     app: aai-service
+#{{ end }}
+#{{ if not .Values.disableAaiModelLoaderService }}
 ---
 apiVersion: v1
 kind: Service
@@ -181,6 +186,7 @@ spec:
   type: NodePort
   selector:
     app: model-loader-service
+#{{ end }}
 ---
 apiVersion: v1
 kind: Service
@@ -196,6 +202,7 @@ spec:
   selector:
     app: gremlin
   clusterIP: None
+#{{ if not .Values.disableAaiElasticsearch }}
 ---
 apiVersion: v1
 kind: Service
@@ -211,6 +218,8 @@ spec:
   selector:
     app: elasticsearch
   clusterIP: None
+#{{ end }}
+#{{ if not .Values.disableAaiSearchDataService }}
 ---
 apiVersion: v1
 kind: Service
@@ -226,38 +235,8 @@ spec:
   selector:
     app: search-data-service
   clusterIP: None
----
-apiVersion: v1
-kind: Service
-metadata:
-  name: aai-dmaap
-  namespace: "{{ .Values.nsPrefix }}-aai"
-  labels:
-    app: aai-dmaap
-spec:
-  ports:
-  - name: "aai-dmaap-port-3904"
-    port: 3904
-  - name: "aai-dmaap-port-3905"
-    port: 3905
-  selector:
-    app: aai-dmaap
-  clusterIP: None
----
-apiVersion: v1
-kind: Service
-metadata:
-  name: aai-zookeeper
-  namespace: "{{ .Values.nsPrefix }}-aai"
-  labels:
-    app: aai-zookeeper
-spec:
-  ports:
-  - name: "aai-zookeeper-port-2181"
-    port: 2181
-  selector:
-    app: aai-zookeeper
-  clusterIP: None
+#{{ end }}
+#{{ if not .Values.disableAaiAaiTraversal }}
 ---
 apiVersion: v1
 kind: Service
@@ -275,6 +254,8 @@ spec:
   selector:
     app: aai-traversal
   clusterIP: None
+#{{ end }}
+#{{ if not .Values.disableAaiAaiResources }}
 ---
 apiVersion: v1
 kind: Service
@@ -291,4 +272,22 @@ spec:
     port: 5005
   selector:
     app: aai-resources
-  clusterIP: None
\ No newline at end of file
+  clusterIP: None
+#{{ end }}
+#{{ if not .Values.disableAaiSparkyBe }}
+---
+apiVersion: v1
+kind: Service
+metadata:
+  name: sparky-be
+  namespace: "{{ .Values.nsPrefix }}-aai"
+  labels:
+    app: sparky-be
+spec:
+  ports:
+  - name: "sparky-be-port-9517"
+    port: 9517
+  selector:
+    app: sparky-be
+  clusterIP: None
+#{{ end }}
\ No newline at end of file