1.2. Standalone MicroShift updates
You can update just your MicroShift version by embedding the new version in a RHEL image or by installing the RPMs on a standard RHEL operating system. Consider your current operating system version and deployments when planning a MicroShift update.
The following factors apply to a standalone MicroShift version update:
- MicroShift operates as an in-place update and does not require removal of the earlier version.
- Data backups beyond those required for the usual functioning of your applications are not required.
- You can potentially update MicroShift without reinstalling your applications and Operators.
-
Only
rpm-ostreeupdates include automatic rollbacks.
You must update RHEL to update MicroShift if your current operating system is not compatible with the new version of MicroShift that you want to use.
1.2.1. Updating MicroShift on RHEL for Edge 复制链接链接已复制到粘贴板!
You can have automated backup and system rollback in case any part of the update fails by using the rpm-ostree update path for a new or existing RHEL for Edge deployment.
-
You can update MicroShift on an
rpm-ostreesystem such as RHEL for Edge by building a new system image containing the new version of MicroShift. -
The
rpm-ostreeimage can be the same version or an updated version, but the versions of RHEL for Edge and MicroShift must be compatible.
The following features are available in the RHEL for Edge update path:
- The system automatically rolls back to an earlier healthy system state if the update fails.
- You do not need to reinstall applications.
- You do not need to reinstall Operators.
- You can update an application without updating MicroShift using this update type.
- The image you build can contain other updates as needed.
To begin a MicroShift update by embedding the new version in a RHEL for Edge image, use the procedures in the following documentation:
To understand more about greenboot, see the following documentation:
1.2.2. Manual RPM updates 复制链接链接已复制到粘贴板!
You can update MicroShift manually on Red Hat Enterprise Linux (RHEL) by updating the RPMs. This type of update is useful for development environments and testing.
- To complete this update type, use the subscription manager to enable the repository that has the new RPMs.
- Use manual processes to ensure system health and complete additional system backups.
- To begin a manual RPM update, use the procedures in the following documentation:
- About updating MicroShift RPMs manually
When using RPM updates, avoid creating an unsupported configuration or breaking your node by carefully managing your RHEL repositories.
Prerequisites
- You understand the support status of the version of MicroShift you are using.
- You have root-user access to your build host.
- You reviewed the Red Hat Device Edge release compatibility matrix.
Procedure
Avoid unintended updates by locking your operating system version by running the following command:
$ sudo subscription-manager release --set=9.6If you are using an EUS MicroShift release, disable the RHEL standard-support-scope repositories by running the following command:
$ sudo subscription-manager repos \ --disable=rhel-9-for-$(uname -m)-appstream-rpms \1 --disable=rhel-9-for-$(uname -m)-baseos-rpms- 1
- You can replace 9 with the major version of your compatible RHEL system if it is not same version given in this example.
After you disable the standard-support repositories, enable the RHEL EUS repos by running the following command:
$ sudo subscription-manager repos \ --enable rhel-9-for-$(uname -m)-appstream-eus-rpms \1 --enable rhel-9-for-$(uname -m)-baseos-eus-rpms- 1
- You can replace 9 with the major version of your compatible RHEL system if it is not same version given in this example.
Verification
List the repositories you have enabled for RHEL by running the following command:
$ sudo subscription-manager repos --list-enabledExample output
+----------------------------------------------------------+ Available Repositories in /etc/yum.repos.d/redhat.repo +----------------------------------------------------------+ Repo ID: rhel-9-for-x86_64-baseos-eus-rpms Repo Name: Red Hat Enterprise Linux 9 for x86_64 - BaseOS - Extended Update Support (RPMs) Repo URL: https://cdn.redhat.com/content/eus/rhel9/$releasever/x86_64/baseos/os Enabled: 1 Repo ID: rhel-9-for-x86_64-appstream-eus-rpms Repo Name: Red Hat Enterprise Linux 9 for x86_64 - AppStream - Extended Update Support (RPMs) Repo URL: https://cdn.redhat.com/content/eus/rhel9/$releasever/x86_64/appstream/os Enabled: 1