使用 OpenShift OperatorHub 升级 Redis Enterprise
此任务介绍如何通过 OpenShift OperatorHub 升级 Redis Enterprise 集群。
适用于 Kubernetes 的 Redis Enterprise |
---|
升级前
-
检查支持的 Kubernetes 发行版,确保您的 Kubernetes 发行版受支持。
-
用
oc get rec
并验证LICENSE STATE
在您的 REC 上有效,然后再开始升级过程。 -
验证您是从 Redis Enterprise作员版本 6.2.10-45 或更高版本升级的。否则,必须先升级到 6.2.10-45,然后再升级到版本 6.2.18 或更高版本。
升级 Redis Enterprise operator
-
从 Operators >Installed Operators 页面中选择 Redis Enterprise Operator。
-
选择 Subscription 选项卡。
-
验证您的更新批准是否设置为“手动”。
-
如果要升级到最新版本,请将 Update channel 设置为 “production”。如果要升级到旧版本,请为您的 Update 频道选择它。
-
选择 Upgrade status (升级状态) 下显示的 Upgrade available (可用升级)。
-
当 “Review manual InstallPlan” 部分出现时,选择 Preview installPlan,然后在查看详细信息后选择 Approve。这将启动 Operator 升级。
您可以从 Installed Operators 页面监控升级。新的 Redis Enterprise Operator 将出现在列表中,其状态为 “Installing”。OpenShift 将删除旧运算符,并在删除过程中显示 “Cannot update” 状态。
重新应用 SCC
如果您使用的是 OpenShift,则还需要手动重新应用安全上下文约束文件 (scc.yaml
) 并将其绑定到您的服务帐户。
oc apply -f openshift/scc.yaml
oc adm policy add-scc-to-user redis-enterprise-scc-v2 \
system:serviceaccount:<my-project>:<rec-name>
If you are upgrading from operator version 6.4.2-6 or before, see the after upgrading section in the OpenShift CLI upgrade to delete the old SCC and role binding after all clusters are running 6.4.2-6 or later.
On this page