Upgrade in an air-gapped environment

Upgrade Che on a cluster with no internet access by mirroring updated container images and Operator catalogs to your private registry before running the upgrade.

Prerequisites
Procedure
Procedure
  1. Download and execute the mirroring script to install a custom Operator catalog and mirror the related images: prepare-restricted-environment.sh.

    $ bash prepare-restricted-environment.sh \
      --devworkspace_operator_index quay.io/devfile/devworkspace-operator-index:release-digest\
      --devworkspace_operator_version "v0.42.0" \
      --prod_operator_index "registry.access.redhat.com/redhat/community-operator-index:v4.18" \
      --prod_operator_package_name "eclipse-che" \
      --prod_operator_bundle_name "eclipse-che" \
      --prod_operator_version "v7.120.0" \
      --my_registry "<my_registry>" (1)
    1 The private Docker registry where the images will be mirrored
  2. In all running workspaces in the Che previous minor version instance, save and push changes back to the Git repositories.

  3. Stop all workspaces in the Che previous minor version instance.

  4. Run the following command:

    $ chectl server:update --che-operator-image="$TAG" -n eclipse-che --k8spodwaittimeout=1800000
Verification
  1. Navigate to the Che instance.

  2. The 7.120 version number is visible at the bottom of the page.