Bootstrap FreeKB - OpenShift - oc cluster-info
OpenShift - oc cluster-info

Updated:   |  OpenShift articles

If you are not familiar with the oc command, refer to OpenShift - Getting Started with the oc command.

Before you can use the oc cluster-info command, you must first login using the oc login command. The oc cluster-info command can be used to display basic information about the cluster.

oc cluster-info

 

If the cluster is running, something like this should be returned. The oc config view or oc get apiserver commands can be used to display the API Server URL (api.openshift.example.com in this example).

Kubernetes master is running at https://api.openshift.example.com:6443

 

On the other hand, if you have not logged into OpenShift, something like this will be returned.

To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
The connection to the server api.openshift.example.com:6443 was refused - did you specify the right host or port?

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter b94e25 in the box below so that we can be sure you are a human.