您可以自动化每个安全集群的升级流程,并从RHACS门户查看升级状态。(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.)
使用自动升级,在您升级Central后;所有安全集群中的传感器、收集器和合规性服务将自动升级到最新版本。(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还支持在RHACS门户内集中管理所有安全集群。新的**集群**视图显示有关所有安全集群的信息,每个集群的传感器版本以及升级状态消息。您还可以使用此视图有选择地升级安全集群或更改其配置。(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.)
|
您可以为所有受保护的集群启用自动升级,以自动将所有受保护集群中的Collector和Compliance服务升级到最新版本。
在RHACS门户中,转到**平台配置** → **集群**。
启用**自动升级受保护的集群**开关。
对于新安装,**自动升级受保护的集群**开关默认启用。 |
如果您想手动管理受保护的集群升级,可以禁用自动升级。
在RHACS门户中,转到**平台配置** → **集群**。
关闭**自动升级受保护的集群**开关。
对于新安装,**自动升级受保护的集群**开关默认启用。 |
**集群**视图列出了所有集群及其升级状态。
升级状态 | 描述 |
---|---|
与中央版本保持一致 |
受保护的集群正在运行与中央相同的版本。 |
有可用升级 |
Sensor和Collector有新版本可用。 |
升级失败。重试升级。 |
之前的自动升级失败。 |
受保护集群版本不受RHACS管理。 |
外部工具(例如Helm或Operator)控制受保护集群的版本。您可以使用外部工具升级受保护的集群。 |
预检完成 |
升级正在进行中。在执行自动升级之前,升级安装程序会运行预检。在预检期间,安装程序会验证是否满足某些条件,然后才会启动升级过程。 |
有时,Red Hat Advanced Cluster Security for Kubernetes自动升级可能会失败。升级失败时,受保护集群的状态消息将变为升级失败。重试升级
。要查看有关失败的更多信息并了解升级失败的原因,您可以查看**集群**视图中的受保护集群行。
一些常见的失败原因是:
由于缺少或不可调度的镜像,sensor-upgrader部署可能未运行。
预检可能失败,原因可能是RBAC权限不足,或者集群状态无法识别。如果您已编辑Red Hat Advanced Cluster Security for Kubernetes服务配置或缺少auto-upgrade.stackrox.io/component
标签,则可能会发生这种情况。
执行升级时可能存在错误。如果发生这种情况,升级安装程序会自动尝试回滚升级。
有时,回滚也会失败。对于这种情况,请查看集群日志以识别问题或联系支持。 |
在识别并解决升级失败的根本原因后,您可以使用**重试升级**选项来升级受保护的集群。