Bootstrap FreeKB - OpenShift - Determine Cluster ID
OpenShift - Determine Cluster ID

Updated:   |  OpenShift articles

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

The oc get clusterversion command with --output yaml or --output json can be used to determine the Cluster ID.

~]$ oc get clusterversion --output yaml
items:
  spec:
    clusterID: 36255ad8-8b26-4327-8ea0-d58c181349a4

 

Or, this one liner can be used.

~]$ oc get clusterversion --output jsonpath={.items[*].spec.clusterID}
36255ad8-8b26-4327-8ea0-d58c181349a4

 




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 528f4b in the box below so that we can be sure you are a human.