13.2.6. 只完成 control plane 集群更新
完成以下步骤以仅执行 control plane 集群更新。
control plane 仅更新被称为 EUS 到 EUS 更新。只有 control plane 更新只能在偶数的 OpenShift Container Platform 次版本之间有效。
13.2.6.1. 仅确认 control plane 或 y-stream 更新 复制链接链接已复制到粘贴板!
当您从 4.11 及更新版本升级到所有版本时,您必须手动确认更新可以继续。
在确认更新前,请验证您没有使用任何从您要升级到的版本中删除的 Kubernetes API。例如,在 OpenShift Container Platform 4.17 中,没有删除 API。如需更多信息,请参阅"Kubernetes API 删除"。
先决条件
- 已确认集群中运行的所有应用程序的 API 与 OpenShift Container Platform 的下一个 Y-stream 版本兼容。有关兼容性的详情,请参阅"在更新版本间验证集群 API 版本"。
流程
运行以下命令完成管理确认以启动集群更新:
$ oc adm upgrade如果集群更新没有成功完成,则
Reason和Message部分中提供了有关更新失败的更多详情。输出示例
Cluster version is 4.15.45 Upgradeable=False Reason: MultipleReasons Message: Cluster should not be upgraded between minor versions for multiple reasons: AdminAckRequired,ResourceDeletesInProgress * Kubernetes 1.29 and therefore OpenShift 4.16 remove several APIs which require admin consideration. Please see the knowledge article https://access.redhat.com/articles/7031404 for details and instructions. * Cluster minor level upgrades are not allowed while resource deletions are in progress; resources=PrometheusRule "openshift-kube-apiserver/kube-apiserver-recording-rules" ReleaseAccepted=False Reason: PreconditionChecks Message: Preconditions failed for payload loaded version="4.16.34" image="quay.io/openshift-release-dev/ocp-release@sha256:41bb08c560f6db5039ccdf242e590e8b23049b5eb31e1c4f6021d1d520b353b8": Precondition "ClusterVersionUpgradeable" failed because of "MultipleReasons": Cluster should not be upgraded between minor versions for multiple reasons: AdminAckRequired,ResourceDeletesInProgress * Kubernetes 1.29 and therefore OpenShift 4.16 remove several APIs which require admin consideration. Please see the knowledge article https://access.redhat.com/articles/7031404 for details and instructions. * Cluster minor level upgrades are not allowed while resource deletions are in progress; resources=PrometheusRule "openshift-kube-apiserver/kube-apiserver-recording-rules" Upstream is unset, so the cluster will use an appropriate default. Channel: eus-4.16 (available channels: candidate-4.15, candidate-4.16, eus-4.16, fast-4.15, fast-4.16, stable-4.15, stable-4.16) Recommended updates: VERSION IMAGE 4.16.34 quay.io/openshift-release-dev/ocp-release@sha256:41bb08c560f6db5039ccdf242e590e8b23049b5eb31e1c4f6021d1d520b353b8注意在本例中,链接的红帽知识库文章(准备升级到 OpenShift Container Platform 4.16)提供了有关验证不同版本之间的 API 兼容性的更多详情。
验证
运行以下命令验证更新:
$ oc get configmap admin-acks -n openshift-config -o json | jq .data输出示例
{ "ack-4.14-kube-1.28-api-removals-in-4.15": "true", "ack-4.15-kube-1.29-api-removals-in-4.16": "true" }注意在本例中,集群从 4.14 版本更新至 4.15,然后在 Control Plane 中从 4.15 更新至 4.16。