Search code examples
kubernetesopenshiftokd

How to find the Openshift Cluster API address using rest api


how to find the the cluster api address using rest api. Like cluster ID can be collected from /apis/config.openshift.io/v1/clusterversions.

enter image description here

thanks in advance


Solution

  • The API address is available in the apiServerURL field in the status of the Infrastructure object, available at /apis/config.openshift.io/v1/infrastructures.