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

    如果集群更新没有成功完成,则 ReasonMessage 部分中提供了有关更新失败的更多详情。

    输出示例

    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。

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

关于红帽文档

Legal Notice

Theme

© 2026 Red Hat
返回顶部