Checking the Cluster Version and Component Versions on OpenShift 4.x

Solution Verified - Updated

Environment

  • Red Hat OpenShift Container Platform
    • 4.x

Issue

  • What version of OpenShift am I running?
  • What version of each component am I running with in OpenShift?

Diagnostic Steps

  • To get the versions of the cluster you can run the following:

    • If you are providing data to support you will want to collect this as a file using -o yaml appended to the command.
    $ oc get clusterversion
    
  • To get the version of all of the top level operators that are deployed on the cluster, run the following:

    • If you are providing data to support you will want to collect this as a file using -o yaml appended to the command.
    $ oc get clusteroperator
    
  • To see what the release payload contains for the current clusterversion that you are running, you can run the following:

    $ oc adm release info $(oc get clusterversion -o jsonpath='{.items[].status.current.payload}{"\n"}')
    
SBR
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.