...
Now we got consul host, <consul_host=10.209.63.6 >
We also need to expose the Config-Binding service
root@excl-xxxxxx-lego-casablanca-node-1:~# kubectl -n onap expose svc config-binding-service --type=LoadBalancer --name=mycbs
service "mycbs" exposed
root@excl-xxxxxx-lego-casablanca-node-1:~# kubectl -n onap get svc -o wide | grep config
config-binding-service ClusterIP 10.43.184.13 <none> 10000/TCP 6d app=config-binding-service
mycbs LoadBalancer 10.43.178.39 10.209.63.17 10000:31464/TCP 3d app=config-binding-service
Take a note of the exposed Config Binding Service ip-address above (10.209.63.17) and keep this terminal open.
For the Docker Host
Login to the ubuntu VM, install docker and update it's configuration to accept tcp requests.here are the steps.
...
Mode | Description |
---|---|
attached | component is run in the ‘foreground’, container logs are streamed to stdout. Ctrl-C is used to terminate the dcae_cli session. |
unattached | component is run in the ‘background’, container logs are viewed via docker logs command, container runs until undeployed with dcae_cli undeploy command. |
Check micro service on the Docker host:
In the example component spec, datafile image is provided. Therefore Go back to the previously opened terminal on the ONAP deployment and verify that the service is executing ( the output will be similar to this) by executing the command
# curl http://<IP of the exposed Config Binding Service>:10000/service_component/<SERVICE_NAME>
i.e.
root@excl-xxxxxx-lego-casablanca-node-1:~# curl http://10.209.63.17:10000/service_component/root.e677f7f8-ac75-4919-bdf7-6b794a8f2cc8.1-0-0.dcae-pm-mapper
{"pm-mapper-filter": "{ \"filters\":[]}", "3GPP.schema.file": "{\"3GPP_Schema\":\"./etc/3GPP_relaxed_schema.xsd\"}", "streams_publish.pm_mapper_handle_out.message_router_topic": "unauthenticated.PM_VES_OUTPUT", "streams_subscribes": {}, "streams_publishes": {"pm_mapper_handle_out": {"type": "message_router", "aaf_password": null, "dmaap_info": {"topic_url": "https://we-are-message-router.us:3905/events/some-topic", "client_role": null, "location": null, "client_id": null}, "aaf_username": null}}, "streams_subscribes.pm_mapper_handle_in.feed_id": "1", "services_calls": {}}ubuntu@masternightly-node-2:
Check micro service on the Docker host:
In the example component spec the datafile image is provided therefore it is deployed.
Goto the terminal thats previously logged into the ubuntu VM.
...