From 329c139629ecc03526f6235a01a85645d23e70cb Mon Sep 17 00:00:00 2001 From: HuabingZhao Date: Mon, 30 Oct 2017 08:59:48 +0800 Subject: Modify MSB installation document Issue-Id: OOM-313 Change-Id: I2902c75a6bfd520e2327ddba459a052994100d27 Signed-off-by: HuabingZhao --- docs/OOM User Guide/oom_user_guide.rst | 35 ++++++++++++---------------------- 1 file changed, 12 insertions(+), 23 deletions(-) (limited to 'docs') diff --git a/docs/OOM User Guide/oom_user_guide.rst b/docs/OOM User Guide/oom_user_guide.rst index c55ccaa6cc..ee3b2f1430 100644 --- a/docs/OOM User Guide/oom_user_guide.rst +++ b/docs/OOM User Guide/oom_user_guide.rst @@ -882,11 +882,11 @@ Integration with MSB ==================== The \ `Microservices Bus -Project `__ provides +Project `__ provides facilities to integrate micro-services into ONAP and therefore needs to integrate into OOM - primarily through Consul which is the backend of MSB service discovery. The following is a brief description of how this -integration will be done (thanks Huabing): +integration will be done: A registrator to push the service endpoint info to MSB service discovery.  @@ -910,10 +910,10 @@ discovery.  Details of the registration service API can be found at \ `Microservice Bus API -Documentation `__. +Documentation `__. How to define the service endpoints using annotation \ `ONAP Services -List#OOMIntegration `__ +List#OOMIntegration `__ A preliminary view of the OOM-MSB integration is as follows: @@ -925,32 +925,21 @@ A message sequence chart of the registration process: MSB Usage Instructions ---------------------- +MSB provides kubernetes charts in OOM, so it can be spun up by oom oneclick command. -**Pull and run MSB docker containers** (Login the ONAP docker registry first:):: +Please note that kubernetes authentication token must be set at *kubernetes/kube2msb/values.yaml* so the kube2msb registrator can get the access to watch the kubernetes events and get service annotation by kubernetes APIs. The token can be found in the kubectl configuration file *~/.kube/config* - docker login -u docker -p docker nexus3.onap.org:10001 +MSB and kube2msb can be spun up with all the ONAP components together, or separately using the following commands. - sudo docker run -d --net=host --name msb\_consul consul agent -dev +**Start MSB services**:: - sudo docker run -d --net=host --name msb\_discovery nexus3.onap.org:10001/onap/msb/msb\_discovery + createAll.bash -n onap -a msb - sudo docker run -d --net=host -e "ROUTE\_LABELS=visualRange:1" --name msb\_internal\_apigateway nexus3.onap.org:10001/onap/msb/msb\_apigateway +**Start kube2msb registrator**:: -**Register a REST service to MSB via curl**:: + createAll.bash -n onap -a kube2msb - curl -X POST \\ - - -H "Content-Type: application/json" \\ - - -d '{"serviceName": "aai", "version": "v8", "url": - "/aai/v8/","protocol": "REST", "path": "/aai/v8", "nodes": [ {"ip": - "10.74.215.65","port": "8443"}]}' \\ - - "http://127.0.0.1:10081/api/microservices/v1/services” - -**Test the REST Service via the internal API gateway**:: - - curl http://127.0.0.1/aai/v8/cloud-infrastructure/cloud-regions +More details can be found here `MSB installation `__. FAQ (Frequently Asked Questions) ================================ -- cgit 1.2.3-korg