bcgov / gwa-api

Gateway Admin API for self-service of Kong configuration, ACL management and BCDC Catalog updates for API metadata
Apache License 2.0
6 stars 4 forks source link

Enhance gateway status to use the Kube api to check the upstream and to include the assigned IP #133

Open ikethecoder opened 6 days ago

ikethecoder commented 6 days ago

Background:

Some data planes may be on Openshift clusters that use VMware NSX Advanced Load Balancer (AVI Kubernetes Operator), which is an advanced ingress controller. In this case, the kube-api will provision an Openshift Route and an IP address will be dynamically assigned. We want the IP address to be available when a user calls the /v2/namespaces/<string:namespace>/services endpoint.

A/C:

Technical notes:

IP address can be found in the Route detail, if the AVI operator is used on the cluster:

status:
  ingress:
    - host: <SERVICE>.api.gov.bc.ca
      routerName: ako-OCPEMERALD
      conditions:
        - type: Admitted
          status: 'True'
          message: 10.99.10.8