Skip to content

Instantly share code, notes, and snippets.

@awgreene
Last active January 30, 2019 15:04
Show Gist options
  • Save awgreene/9ca5faafc6167b30003f5cc844d40657 to your computer and use it in GitHub Desktop.
Save awgreene/9ca5faafc6167b30003f5cc844d40657 to your computer and use it in GitHub Desktop.

Pinning an Openshift Version

  1. Deploy a OpenShift Cluster and make sure it is stable.

  2. Get the clusterversion:

$ oc get clusterversion
NAME      VERSION                           AVAILABLE   PROGRESSING   SINCE     STATUS
version   4.0.0-0.alpha-2019-01-29-032610   True        False         23h       Cluster version is 4.0.0-0.alpha-2019-01-29-032610
  1. Visit https://origin-release.svc.ci.openshift.org/ and ensure that the image with the VERSION_TAG from the previous step still exists. If the image exists, you can pull the image from:
registry.svc.ci.openshift.org/openshift/origin-release:{VERSION_TAG}
  1. Pull the image to your local repository and retag it:
$ docker pull registry.svc.ci.openshift.org/openshift/origin-release:4.0.0-0.alpha-2019-01-29-032610
$ docker tag registry.svc.ci.openshift.org/openshift/origin-release:4.0.0-0.alpha-2019-01-29-032610 quay.io/agreene/stable-openshift
$ docker push quay.io/agreene/stable-openshift
  1. Update local environment variables so the installer uses your image
$ export OPENSHIFT_INSTALL_RELEASE_IMAGE_OVERRIDE=quay.io/agreene/stable-openshift
$ export _OPENSHIFT_INSTALL_RELEASE_IMAGE_OVERRIDE=quay.io/agreene/stable-openshift
  1. Run the installer again and deploy your tagged image.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment