cancel
Showing results for 
Search instead for 
Did you mean: 
cstauss1
Mission Specialist
Mission Specialist
  • 5,015 Views

Master API endpoint URL

Jump to solution

Is there a way to determine the master API endpoint URL in OenShift? Thanks

Labels (1)
1 Solution

Accepted Solutions
Chetan_Tiwary_
Community Manager
Community Manager
  • 4,976 Views

Hello @cstauss1 ,

In OpenShift, you can determine the master API endpoint URL by using the oc cluster-info command. This command provides information about the OpenShift cluster, including the URL of the master API endpoint. 

$ oc cluster-info
Kubernetes master is running at https://api.<your-openshift-domain>:6443

Please note the URL format may vary depending on your OCP installation and configuration. And it may also depend upon your OCP version

The oc config view or oc get apiserver commands can also be used to display the API Server URL.

View solution in original post

1 Reply
Chetan_Tiwary_
Community Manager
Community Manager
  • 4,977 Views

Hello @cstauss1 ,

In OpenShift, you can determine the master API endpoint URL by using the oc cluster-info command. This command provides information about the OpenShift cluster, including the URL of the master API endpoint. 

$ oc cluster-info
Kubernetes master is running at https://api.<your-openshift-domain>:6443

Please note the URL format may vary depending on your OCP installation and configuration. And it may also depend upon your OCP version

The oc config view or oc get apiserver commands can also be used to display the API Server URL.

Join the discussion
You must log in to join this conversation.