Uploaded image for project: 'Data Collection, Analytics, and Events'
  1. Data Collection, Analytics, and Events
  2. DCAEGEN2-1521

Remove consul service lookup for CBS java library

XMLWordPrintable

      As all ONAP MS are targeted on K8S deployments (since R3), the current logic for CBS service lookup can be switched to use the k8s service definition of configbinding.

      Under current deployment, CBS is deployed as "config-binding-service" k8s service.

      kubectl get svc -n onap | grep config
      config-binding-service          NodePort       10.43.206.210   <none>                                 10000:30415/TCP                                                              4d11h

       

      This service can be used to query the CBS API directly rather than looking up through consul (which is added un-necessary step)

      https://git.onap.org/dcaegen2/services/sdk/tree/rest-services/cbs-client/src/main/java/org/onap/dcaegen2/services/sdk/rest/services/cbs/client/impl/CbsLookup.java

      CBS Library currently depends on Consul lookup to identify CBS services (using ServiceAddress and ServicePort)

       

       

            fkrzywka fkrzywka
            vv770d vv770d
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: