Kahibaro
Discord Login Register

16.1 OpenShift upgrade process

Types of OpenShift Upgrades

OpenShift supports several upgrade scopes, each with slightly different processes and constraints:

Key Components Involved in Upgrades

While a full architectural recap is in other chapters, the upgrade process specifically touches:

Understanding how these components work together is essential to interpreting upgrade status and troubleshooting when something stalls.

Upgrade Channels and Release Images

OpenShift uses update channels and release images to define what versions you can upgrade to and how:

Pre‑Upgrade Planning

A safe OpenShift upgrade is more about preparation than clicking an “Upgrade” button. Key planning tasks:

Version and Compatibility Planning

Use:

Health and Capacity Checks

Before starting:

Backup and Rollback Strategy

There is no supported “downgrade” of the OpenShift cluster itself, so:

Maintenance Window and Stakeholder Coordination

Upgrade Execution Workflow

The actual process is designed to be largely automated and rolling. The steps below refer to a typical self-managed OpenShift 4 cluster; managed offerings simplify some of these.

1. Select Channel and Target Version

Using the web console or CLI:

2. Initiate the Upgrade

You can start via:

The CVO will pull the release image and begin reconciling components.

3. Control Plane Upgrade

Typically, the upgrade proceeds in this order:

  1. Control plane components (API server, scheduler, controller manager, etc.) are upgraded.
  2. etcd is upgraded as appropriate for the target version.
  3. Each control plane node is rebooted and updated in a controlled fashion.

The CVO and MCO coordinate to:

4. Worker Node Upgrade

Once control plane and core Operators are updated:

Ensure PodDisruptionBudgets (PDBs) are correctly set so that workloads remain available while nodes drain.

5. Platform Operator and Add‑On Upgrade

During or after the main cluster upgrade:

Monitoring Upgrade Progress

Continuous monitoring is crucial during the process:

Typical indicators of success:

Handling Common Upgrade Issues

Even with planning, upgrades can encounter problems. Some patterns:

Stuck or Slow Upgrades

Symptoms:

Actions:

Node Upgrade Problems

Symptoms:

Actions:

Application Disruptions

Symptoms:

Actions:

Post‑Upgrade Validation

After the cluster reports that the upgrade is complete:

Platform-Level Validation

Application-Level Validation

Documentation and Follow‑Up

Special Considerations for Different Deployment Models

Although the core process is similar, deployment models affect how you interact with upgrades.

Installer‑Provisioned vs. User‑Provisioned Infrastructure

Managed OpenShift Services

In services like ROSA, ARO, or OpenShift Dedicated:

Automating and Scheduling Upgrades

To make upgrades repeatable and less error-prone:

By treating the OpenShift upgrade process as a regular, well-documented operational activity, rather than an ad-hoc event, you can keep your clusters secure, supported, and aligned with the rest of your platform ecosystem.

Views: 123

Comments

Please login to add a comment.

Don't have an account? Register now!