nerc-project / operations

Issues related to the operation of the NERC OpenShift environment
2 stars 0 forks source link

Query about autopilot from ec528 course #795

Closed msdisme closed 2 weeks ago

msdisme commented 3 weeks ago

@naved001 and @computate, @anish701 asks if there is any route exposed for the Autopilot service or the Kubernetes API (see https://github.com/IBM/autopilot?tab=readme-ov-file#manually-query-the-autopilot-service). The service account doesn't have access to view existing routes, so I just wanted to check if there are any available endpoints that our app can connect to run Autopilot health checks or view nodes (through the Kubernetes API).

computate commented 3 weeks ago

Hi @msdisme and @Anish701 , the autopilot Service for our Prod cluster is actually available at this internal service URL autopilot-healthchecks.autopilot.svc:3333. See if it works for you:

$ oc debug
$ curl http://autopilot-healthchecks.autopilot.svc:3333/status?check=dcgm&r=2
Anish701 commented 3 weeks ago

Hi @computate, thank you so much! I was able to get the app to successfully hit the endpoint by setting up an nginx proxy.