Skip to content

Instantly share code, notes, and snippets.

@williamcaban
Last active December 1, 2020 06:10
Show Gist options
  • Save williamcaban/55f71170f4518f9b0409c9f18c73d0c5 to your computer and use it in GitHub Desktop.
Save williamcaban/55f71170f4518f9b0409c9f18c73d0c5 to your computer and use it in GitHub Desktop.

OCP4 Explicit Manual Upgrades with CLI

In this example, the latest 4.4.x it is 4.4.3 and it has this entry:

Pull From: quay.io/openshift-release-dev/ocp-release@sha256:039a4ef7c128a049ccf916a1d68ce93e8f5494b44d5a75df60c85e9e7191dacc

Validate your current version is in the list of upgrade path for the desired release. For 4.4.3 these are the possible upgrade paths:

  Upgrades: 4.3.18, 4.3.19, 4.3.20, 4.3.21, 4.4.0-rc.0, 4.4.0-rc.1, 4.4.0-rc.2, 4.4.0-rc.4, 4.4.0-rc.6, 4.4.0-rc.7, 4.4.0-rc.8, 4.4.0-rc.9, 4.4.0-rc.10, 4.4.0-rc.11, 4.4.0-rc.12, 4.4.0-rc.13, 4.4.0, 4.4.1, 4.4.2
  • That is the pull image to use for the explicit upgrade:
export PULL_IMAGE=quay.io/openshift-release-dev/ocp-release@sha256:039a4ef7c128a049ccf916a1d68ce93e8f5494b44d5a75df60c85e9e7191dacc

# WARNING: This option does not check for upgrade compatibility and may break your cluster
oc adm upgrade --allow-explicit-upgrade --to-image=${PULL_IMAGE}
  • To monitor progress use the following commands:
oc get clusterversion
oc get co

# to combine their output in the console:
watch -c "oc get clusterversion ; oc get co"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment