Register Clamp API to MSB 29/34929/2
authorYuanHu <yuan.hu1@zte.com.cn>
Fri, 9 Mar 2018 09:12:17 +0000 (17:12 +0800)
committerYuanHu <yuan.hu1@zte.com.cn>
Mon, 12 Mar 2018 08:11:18 +0000 (16:11 +0800)
Register clamp API to MSB while deployed by OOM.
Actual URL of Clamp: http://[CLAMP_IP]:[CLAMP_PORT]/restservices/clds/v1/*
Published URL of MSB: http://[MSB_IP]:[MSB_PORT]/api/clamp/v1/*

Issue-ID: CLAMP-95, OOM-230

Change-Id: I88d6cf47d91fbabcb6fd894e682fd6391634f232
Signed-off-by: YuanHu <yuan.hu1@zte.com.cn>
kubernetes/clamp/templates/all-services.yaml

index b3b9c65..c9f4f5e 100644 (file)
@@ -21,6 +21,17 @@ kind: Service
 metadata:
   name: clamp
   namespace: "{{ .Values.nsPrefix }}"
+  annotations:
+    msb.onap.org/service-info: '[
+      {
+          "serviceName": "clamp",
+          "version": "v1",
+          "url": "/restservices/clds/v1",
+          "protocol": "REST",
+          "port": "8080",
+          "visualRange":"1"
+      }
+      ]'
 spec:
   ports:
   - name: clamp