How to Upgrade OpenShift 4 between different minor versions via "oc" cli

Updated 2020-12-17T09:14:44+00:00

Issue

  • Upgrading OpenShift4 to the next minor version via oc cli tool.

    NOTE: For fully supported releases (GA), you must use only fast, stable or eus ( Red Hat OpenShift Extended Update Support) channels, more info here if needed.

Environment

  • Red Hat OpenShift Container Platform
    • 4.1 -> 4.2
    • 4.2 -> 4.3
    • 4.3 -> 4.4
    • 4.4 -> 4.5
    • 4.5 -> 4.6

NOTE: This solution uses 4.x and 4.y versions as examples, please change them accordingly. For example, if upgrading from 4.1 to 4.2, then x=1 and y=2.

IMPORTANT: If for some reason you don't see the proper upgrade path, double check the channel modification step and/or raise a case asking support, never use oc adm upgrade --force to upgrade production environments unless it was recommended by Red Hat due to some specific workaround, it could leave the cluster completely unusable/broken.

Subscriber content preview. For full access to the Red Hat Knowledgebase, please log in.

Not a subscriber? Learn more about the benefits of Red Hat Subscriptions.