第 8 章 Configuring automatic upgrades for manifest-installed secured clusters
If you installed Red Hat Advanced Cluster Security for Kubernetes by using the manifest installation method, also known as the `roxctl` CLI method or the legacy installation method, you can automate the upgrade process for each secured cluster. You can also view the upgrade status from the RHACS portal.
Automatic upgrades are only available for RHACS systems that were installed by using the manifest installation method. If you installed RHACS by using the Operator, upgrades are controlled by using Operator Lifecycle Manager (OLM). If you installed RHACS by using Helm charts, you must use Helm to upgrade.
Automatic upgrades make it easier to stay up-to-date by automating the manual task of upgrading each secured cluster. If you have automatic upgrades enabled, and the secured cluster is configured for receiving automated upgrades, the upgrader upgrades the entire secured cluster to the same version as Central.
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.
- The automatic upgrade feature is enabled by default.
- If you are using a private image registry, you must first push the Sensor and Collector images to your private registry.
- The Sensor must run with the default RBAC permissions.
- Automatic upgrades do not preserve any patches that you have made to any RHACS services running in your cluster. However, it preserves all labels and annotations that you have added to any RHACS object.
-
By default, Red Hat Advanced Cluster Security for Kubernetes creates a service account called
sensor-upgraderin each secured cluster. This account is highly privileged but is only used during upgrades. If you remove this account, Sensor does not have enough permissions, and you must complete future upgrades manually.
You can enable automatic upgrades for all secured clusters that were installed by using the manifest installation method, also known as the roxctl CLI method. This feature automatically upgrades Sensor, Admission Controller, Collector, and Compliance in all secured clusters to the same version as Central.
Procedure
-
In the RHACS portal, go 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.