You can automate the upgrade process for each secured cluster and view the upgrade status from the RHACS portal.
Automatic upgrades make it easier to stay up-to-date by automating the manual task of upgrading each secured cluster.
With automatic upgrades, after you upgrade Central; Sensor, Collector, and Compliance services in all secured clusters, automatically upgrade to the latest version.
Red Hat Advanced Cluster Security for Kubernetes also enables centralized management of all your secured clusters from within the RHACS portal. The new Clusters view displays information about all your secured clusters, the Sensor version for every cluster, and upgrade status messages. You can also use this view to selectively upgrade your secured clusters or change their configuration.
|
You can enable automatic upgrades for all secured clusters to automatically upgrade Collector and Compliance services in all secured clusters to the latest version.
In the RHACS portal, navigate to Platform Configuration → Clusters.
Turn on the Automatically upgrade secured clusters toggle.
For new installations, the Automatically upgrade secured clusters toggle is enabled by default. |
If you want to manage your secured cluster upgrades manually, you can disable automatic upgrades.
In the RHACS portal, navigate to Platform Configuration → Clusters.
Turn off the Automatically upgrade secured clusters toggle.
For new installations, the Automatically upgrade secured clusters toggle is enabled by default. |
The Clusters view lists all clusters and their upgrade statuses.
upgrade status | Description |
---|---|
Up to date with Central version |
The secured cluster is running the same version as Central. |
upgrade available |
A new version is available for the Sensor and Collector. |
upgrade failed. Retry upgrade. |
The previous automatic upgrade failed. |
Manual upgrade required |
The Sensor and Collector version is older than version 2.5.29.0. You must manually upgrade your secured clusters. |
Pre-flight checks complete |
The upgrade is in progress. Before performing automatic upgrade, the upgrade installer runs a pre-flight check. During the pre-flight check, the installer verifies if certain conditions are satisfied and then only starts the upgrade process. |
Sometimes, Red Hat Advanced Cluster Security for Kubernetes automatic upgrades might fail to install.
When an upgrade fails, the status message for the secured cluster changes to upgrade failed. Retry upgrade
.
To view more information about the failure and understand why the upgrade failed, you can check the secured cluster row in the Clusters view.
Some common reasons for the failure are:
The sensor-upgrader deployment might not have run because of a missing or a non-schedulable image.
The pre-flight checks may have failed, either because of insufficient RBAC permissions or because the cluster state is not recognizable.
This can happen if you have edited Red Hat Advanced Cluster Security for Kubernetes service configurations or the auto-upgrade.stackrox.io/component
label is missing.
There might be errors in executing the upgrade. If this happens, the upgrade installer automatically attempts to roll back the upgrade.
Sometimes, the rollback can fail as well. For such cases view the cluster logs to identify the issue or contact support. |
After you identify and fix the root cause for the upgrade failure, you can use the Retry upgrade option to upgrade your secured cluster.
If you do not want to enable automatic upgrades, you can manage your secured cluster upgrades by using the Clusters view.
To manually trigger upgrades for your secured clusters:
In the RHACS portal, navigate to Platform Configuration → Clusters.
Select the upgrade available option under the upgrade status column for the cluster you want to upgrade.
To upgrade multiple clusters at once, select the checkboxes in the Cluster column for the clusters you want to update.
Click upgrade.