4.3. 使用 OLM 升级 3scale Operator
要将 3scale Operator 从单一命名空间升级到基于 Operator 部署的所有命名空间中集群范围的安装,您必须从命名空间中删除 3scale Operator,然后在集群中重新安装 Operator。
集群管理员可以使用 Web 控制台从所选命名空间中删除已安装的 Operator。卸载 Operator 不会卸载现有的 3scale 实例。
从命名空间中卸载 3scale Operator 后,您可以使用 OLM 在集群范围模式下安装 Operator。
先决条件
- 3scale 管理员权限或具有命名空间删除权限的 OpenShift 角色。
流程
在 OpenShift Container Platform 控制台中,使用具有管理员特权的帐户登录。
注意菜单结构取决于您使用的 OpenShift 版本:
- 点 Operators > OperatorHub。此时会显示安装的 Operator 页面。
- 在 Filter by name 中输入 3scale 来找到 Operator 并点它。
- 在 Operator Details 页面中,从 Actions 下拉菜单中选择 Uninstall Operator,将其从特定命名空间中删除。
此时会显示 Uninstall Operator? 对话框,提醒您:
Removing the operator will not remove any of its custom resource definitions or managed resources. If your operator has deployed applications on the cluster or configured off-cluster resources, these will continue to run and need to be cleaned up manually. This action removes the operator as well as the Operator deployments and pods, if any. Any operands and resources managed by the operator, including CRDs and CRs, are not removed. The web console enables dashboards and navigation items for some operators. To remove these after uninstalling the operator, you might need to manually delete the operator CRDs.
Removing the operator will not remove any of its custom resource definitions or managed resources. If your operator has deployed applications on the cluster or configured off-cluster resources, these will continue to run and need to be cleaned up manually. This action removes the operator as well as the Operator deployments and pods, if any. Any operands and resources managed by the operator, including CRDs and CRs, are not removed. The web console enables dashboards and navigation items for some operators. To remove these after uninstalling the operator, you might need to manually delete the operator CRDs.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 选择 Uninstall。此 operator 会停止运行,并且不再接收更新。
- 在 OpenShift Container Platform 控制台中点 Operators > OperatorHub。
- 在 Filter by keyword 框中,键入 3scale operator 来查找 3scale 运算符。
- 点 3scale operator。这时会显示 Operator 信息。
- 点 Install。此时会打开 Install Operator 页面。
- 在 Install Operator 页面中,在 Update channel 部分选择要更新的频道。
- 在 Installation mode 部分中,选择 All namespaces on the cluster(default)。Operator 将在集群中的所有命名空间中可用。
- 点 Subscribe.3scale operator 详情页面会显示,您可以查看 Subscription Overview。
- 确认订阅升级状态显示为 Up to date。
- 验证是否显示了 3scale operator ClusterServiceVersion(CSV)。
其它资源
- 有关安装 3scale Operator 的更多信息,请参阅安装和配置 3scale API Management。