1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/rosa-upgrading-cli-tutorial.adoc
2024-04-29 20:39:18 +00:00

66 lines
2.1 KiB
Plaintext

// Module included in the following assemblies:
//
// * rosa_upgrading/rosa-upgrading.adoc
// * rosa_upgrading/rosa-upgrading-sts.adoc
ifeval::["{context}" == "rosa-upgrading-sts"]
:sts:
endif::[]
ifeval::["{context}" == "rosa-hcp-upgrading"]
:rosa-hcp:
endif::[]
:_mod-docs-content-type: PROCEDURE
[id="rosa-upgrading-cli_{context}"]
= Upgrading with the ROSA CLI
You can upgrade a {product-title} (ROSA) cluster manually by using the ROSA CLI (`rosa`).
This method schedules the cluster for an immediate upgrade, if a more recent version is available.
.Prerequisites
* You have installed and configured the latest ROSA CLI on your installation host.
.Procedure
. To verify the current version of your cluster, enter the following command:
+
[source,terminal]
----
$ rosa describe cluster --cluster=<cluster_name|cluster_id> <1>
----
<1> Replace `<cluster_name|cluster_id>` with the cluster name or the ID of the cluster.
. To verify that an upgrade is available, enter the following command:
+
[source,terminal]
----
$ rosa list upgrade --cluster=<cluster_name|cluster_id>
----
+
The command returns a list of versions to which the cluster can be upgraded, including a recommended version.
. To upgrade a cluster to the latest available version, enter the following command:
+
ifndef::rosa-hcp[]
[source,terminal]
----
$ rosa upgrade cluster --cluster=<cluster_name|cluster_id>
----
endif::rosa-hcp[]
ifdef::rosa-hcp[]
[source,terminal]
[source,terminal]
----
$ rosa upgrade cluster --cluster=<cluster_name|cluster_id> --control-plane
----
endif::rosa-hcp[]
+
The cluster is scheduled for an immediate upgrade. This action can take an hour or longer, depending on your workload configuration, such as pod disruption budgets.
+
You will receive an email when the upgrade is complete. You can also check the status by running the `rosa describe cluster` command again from the ROSA CLI or view the status in {cluster-manager} console.
.Troubleshooting
* Sometimes a scheduled upgrade does not trigger. See link:https://access.redhat.com/solutions/6648291[Upgrade maintenance cancelled] for more information.