Add service endpoint annotation for SDC
Issue-Id: OOM-223
Change-Id: Ie1ad56e163bc00b91465e25359d272122ae8ebfd
Signed-off-by: HuabingZhao <zhao.huabing@zte.com.cn>
diff --git a/kubernetes/sdc/templates/all-services.yaml b/kubernetes/sdc/templates/all-services.yaml
index 88cbe8e..2cd895b 100644
--- a/kubernetes/sdc/templates/all-services.yaml
+++ b/kubernetes/sdc/templates/all-services.yaml
@@ -54,6 +54,26 @@
app: sdc-be
name: sdc-be
namespace: "{{ .Values.nsPrefix }}-sdc"
+ annotations:
+ msb.onap.org/service-info: '[
+ {
+ "serviceName": "sdc",
+ "version": "v1",
+ "url": "/sdc/v1",
+ "protocol": "REST",
+ "port": "8080",
+ "visualRange":"1"
+ },
+ {
+ "serviceName": "sdc-deprecated",
+ "version": "v1",
+ "url": "/sdc/v1",
+ "protocol": "REST",
+ "port": "8080",
+ "visualRange":"1",
+ "path":"/sdc/v1"
+ }
+ ]'
spec:
ports:
- name: sdc-be-port-8443
@@ -73,6 +93,17 @@
app: sdc-fe
name: sdc-fe
namespace: "{{ .Values.nsPrefix }}-sdc"
+ annotations:
+ msb.onap.org/service-info: '[
+ {
+ "serviceName": "sdc-gui",
+ "version": "v1",
+ "url": "/sdc1",
+ "protocol": "UI",
+ "port": "8181",
+ "visualRange":"0|1"
+ }
+ ]'
spec:
ports:
- name: sdc-fe-port-9443