Add service endpoint annotation for SDN-C 75/12075/1
authorHuabingZhao <zhao.huabing@zte.com.cn>
Wed, 13 Sep 2017 03:33:43 +0000 (23:33 -0400)
committerHuabingZhao <zhao.huabing@zte.com.cn>
Wed, 13 Sep 2017 03:40:41 +0000 (23:40 -0400)
Issue-Id: OOM-229
Change-Id: I932d9f5bd902f5aa30b1f18a0a83435474f4ee46
Signed-off-by: HuabingZhao <zhao.huabing@zte.com.cn>
kubernetes/sdnc/templates/all-services.yaml

index 4a24947..7223dfd 100644 (file)
@@ -64,6 +64,18 @@ metadata:
   namespace: "{{ .Values.nsPrefix }}-sdnc"
   labels:
     app: sdnc
+  annotations:
+    msb.onap.org/service-info: '[
+      {
+          "serviceName": "sdnc",
+          "version": "v1",
+          "url": "/",
+          "protocol": "REST",
+          "port": "8282",
+          "visualRange":"1",
+          "path": "/"
+      }
+      ]'
 spec:
   ports:
   - name: "sdnc-port"
@@ -81,6 +93,17 @@ metadata:
   namespace: "{{ .Values.nsPrefix }}-sdnc"
   labels:
     app: sdnc-portal
+  annotations:
+    msb.onap.org/service-info: '[
+      {
+          "serviceName": "sdnc-portal",
+          "version": "v1",
+          "url": "/",
+          "protocol": "UI",
+          "port": "8843",
+          "visualRange":"0|1"
+      }
+      ]'
 spec:
   ports:
   - name: "sdnc-portal-port"