Go to primary content
Oracle® Communications Network Exposure Function (NEF) Cloud Native Installation and Upgrade Guide
Release 1.0
F16986-01
Go To Table Of Contents
Contents

Previous
Previous
Next
Next

Verifying kong API Gateway Service

As the entrance of NEF all request would go through api gateway to specific service. Hence, it is necessary to verify if it works. If the following verification steps failed then contact Oracle support.

Refer to Enabling Loadbalancer with MetalLB for detailed description to update API gateway service to use Loadbalancer.

Run the following command and get API gateway service name <NEF-Name>- api-gateway.

kubectl get svc -n <NEF-Namespace>

The service must have an external IP allocated, and default administration port value 8001. Get the URL, http://< API_GATEWAY_EXTERNAL_IP>:8001/services.

Following is a sample content that displays:

{
   "next":null,
   "data":[
      {
         "host":"<NAME>-pcf-nrf-clientservice",
         "created_at":1553667178,
         "connect_timeout":60000,
         "id":"897af1e0-8562-4843-b66a-e7453d29eeb9",
         "protocol":"http",
         "name":"nrf-client",
         "read_timeout":60000,
         "port":5910,
         "path":null,
         "updated_at":1553667178,
         "retries":5,
         "write_timeout":60000
      },
      {
         "host":"istio-ingressgateway.istio-system.svc",
         "created_at":1553667178,
         "connect_timeout":60000,
         "id":"8c2b6ade-d876-4edd-ad28-c0fd28807a5c",
         "protocol":"http",
         "name":"sm-ingress",
         "read_timeout":60000,
         "port":80,
         "path":null,
         "updated_at":1553667178,
         "retries":5,
         "write_timeout":60000
      },
      {
         "host":"<NAME>-pcf-bsf-management-service",
         "created_at":1553667178,
         "connect_timeout":60000,
         "id":"a3fa1ace-7016-4a2b-aabf-0e7e7a2618f0",
         "protocol":"http",
         "name":"bsf-service",
         "read_timeout":60000,
         "port":5903,
         "path":null,
         "updated_at":1553667178,
         "retries":5,
         "write_timeout":60000
      },
      {
         "host":"<NAME>-pcf-pcf-amservice",
         "created_at":1553667178,
         "connect_timeout":60000,
         "id":"aa5ac6a2-162a-45ea-9a3c-c48f501b827e",
         "protocol":"http",
         "name":"am-service",
         "read_timeout":60000,
         "port":5904,
         "path":null,
         "updated_at":1553667178,
         "retries":5,
         "write_timeout":60000
      },
      {
         "host":"<NAME>-pcf-pcf-smservice",
         "created_at":1553667178,
         "connect_timeout":60000,
         "id":"d020415d-6e50-4e35-87b5-050eedb1ee6c",
         "protocol":"http",
         "name":"sm-service",
         "read_timeout":60000,
         "port":5809,
         "path":null,
         "updated_at":1553667178,
         "retries":5,
         "write_timeout":60000
      },
      {
         "host":"<NAME>-pcf-pcf-userservice",
         "created_at":1553667178,
         "connect_timeout":60000,
         "id":"fe364cb8-2ff9-447f-88e6-f4e21b8d9022",
         "protocol":"http",
         "name":"user-service",
         "read_timeout":60000,
         "port":5808,
         "path":null,
         "updated_at":1553667178,
         "retries":5,
         "write_timeout":60000
      }
   ]
}

Use new URL http://<API_GATEWAY_EXTERNAL_IP>:8001/routes to check API gateway routes data.

{
   "next":null,
   "data":[
      {
         "created_at":1553667178,
         "updated_at":1553667178,
         "strip_path":true,
         "service":{
            "id":"a3fa1ace-7016-4a2b-aabf-0e7e7a2618f0"
         },
         "name":null,
         "hosts":null,
         "id":"0bfb813d-64cb-465c-b8ab-fba851c24c94",
         "preserve_host":false,
         "regex_priority":0,
         "paths":[
            "\/bsf-service"
         ],
         "sources":null,
         "destinations":null,
         "snis":null,
         "protocols":[
            "http",
            "https"
         ],
         "methods":null
      },
      {
         "created_at":1553667178,
         "updated_at":1553667178,
         "strip_path":true,
         "service":{
            "id":"aa5ac6a2-162a-45ea-9a3c-c48f501b827e"
         },
         "name":null,
         "hosts":null,
         "id":"52265a1f-9fcb-405f-ba10-1a1b3042a539",
         "preserve_host":false,
         "regex_priority":0,
         "paths":[
            "\/am-service"
         ],
         "sources":null,
         "destinations":null,
         "snis":null,
         "protocols":[
            "http",
            "https"
         ],
         "methods":null
      },
      {
         "created_at":1553667178,
         "id":"5eec4c17-4b03-4bb1-a30d-1812121b8136",
         "strip_path":true,
         "service":{
            "id":"d020415d-6e50-4e35-87b5-050eedb1ee6c"
         },
         "name":"sm-route",
         "hosts":null,
         "updated_at":1553667178,
         "preserve_host":false,
         "regex_priority":0,
         "paths":[
            "\/sm-service"
         ],
         "sources":null,
         "destinations":null,
         "snis":null,
         "protocols":[
            "http",
            "https"
         ],
         "methods":null
      },
      {
         "created_at":1553667178,
         "updated_at":1553667178,
         "strip_path":true,
         "service":{
            "id":"897af1e0-8562-4843-b66a-e7453d29eeb9"
         },
         "name":null,
         "hosts":null,
         "id":"83c923a5-1c61-46af-b1b9-a7fa16ce3ce8",
         "preserve_host":false,
         "regex_priority":0,
         "paths":[
            "\/nrf-client"
         ],
         "sources":null,
         "destinations":null,
         "snis":null,
         "protocols":[
            "http",
            "https"
         ],
         "methods":null
      },
      {
         "created_at":1553667178,
         "updated_at":1553667178,
         "strip_path":true,
         "service":{
            "id":"8c2b6ade-d876-4edd-ad28-c0fd28807a5c"
         },
         "name":null,
         "hosts":null,
         "id":"b42ee6c2-adc6-4ca5-b1ea-d90de1a78529",
         "preserve_host":false,
         "regex_priority":0,
         "paths":[
            "\/sm-ingress"
         ],
         "sources":null,
         "destinations":null,
         "snis":null,
         "protocols":[
            "http",
            "https"
         ],
         "methods":null
      },
      {
         "created_at":1553667178,
         "updated_at":1553667178,
         "strip_path":true,
         "service":{
            "id":"fe364cb8-2ff9-447f-88e6-f4e21b8d9022"
         },
         "name":null,
         "hosts":null,
         "id":"b5134b99-b506-4e35-aa94-f4133daf3c33",
         "preserve_host":false,
         "regex_priority":0,
         "paths":[
            "\/user-service"
         ],
         "sources":null,
         "destinations":null,
         "snis":null,
         "protocols":[
            "http",
            "https"
         ],
         "methods":null
      }
   ]
}