Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ikethecoder opened this issue Nov 18, 2024 · 0 comments
Labels

Comments

@ikethecoder
Copy link
Member

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:

  • move the status logic from gatewayApi to kubeApi
  • have the gatewayApi call the kubeApi to get the status data
  • update the kubeApi to enrich the status data with the IP address if it is available

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant