Jump To Close Expand all Collapse all Table of contents 更新集群 1. 更新集群概述 Expand section "1. 更新集群概述" Collapse section "1. 更新集群概述" 1.1. 了解 OpenShift Container Platform 更新 1.2. 了解升级频道和发行版本 1.3. 了解集群 Operator 条件类型 1.4. 了解集群版本状况类型 1.5. 准备执行 EUS 更新 1.6. 使用 Web 控制台更新集群 1.7. 使用 CLI 更新集群 1.8. 执行 canary rollout 更新 1.9. 更新包含使用 RHEL 的计算(compute)系统的集群 1.10. 在断开连接的环境中更新集群 1.11. 更新在 vSphere 上运行的节点上运行的硬件 2. 了解 OpenShift Container Platform 更新 Expand section "2. 了解 OpenShift Container Platform 更新" Collapse section "2. 了解 OpenShift Container Platform 更新" 2.1. 关于 OpenShift Update 服务 2.2. 常见术语 3. 了解更新频道和发行版本 Expand section "3. 了解更新频道和发行版本" Collapse section "3. 了解更新频道和发行版本" 3.1. 更新频道 Expand section "3.1. 更新频道" Collapse section "3.1. 更新频道" 3.1.1. fast-4.12 频道 3.1.2. stable-4.12 频道 3.1.3. eus-4.y 频道 3.1.4. candidate-4.12 频道 3.1.5. 更新频道中的建议 3.1.6. 更新建议和升级 3.1.7. 为集群选择正确的频道 3.1.8. 受限网络集群 3.1.9. 在频道间切换 4. 了解 OpenShift Container Platform 更新持续时间 Expand section "4. 了解 OpenShift Container Platform 更新持续时间" Collapse section "4. 了解 OpenShift Container Platform 更新持续时间" 4.1. 先决条件 4.2. 影响更新持续时间的因素 4.3. 集群更新阶段 Expand section "4.3. 集群更新阶段" Collapse section "4.3. 集群更新阶段" 4.3.1. Cluster Version Operator 目标更新有效负载部署 4.3.2. Machine Config Operator 节点更新 4.4. 估算集群更新时间 4.5. Red Hat Enterprise Linux (RHEL) 计算节点 5. 准备升级到 OpenShift Container Platform 4.12 Expand section "5. 准备升级到 OpenShift Container Platform 4.12" Collapse section "5. 准备升级到 OpenShift Container Platform 4.12" 5.1. 删除的 Kubernetes API 5.2. 为删除的 API 评估集群 Expand section "5.2. 为删除的 API 评估集群" Collapse section "5.2. 为删除的 API 评估集群" 5.2.1. 查看警报以识别已删除 API 的使用 5.2.2. 使用 APIRequestCount 来识别已删除 API 的使用 5.2.3. 使用 APIRequestCount 来识别哪些工作负载正在使用删除的 API 5.3. 迁移已删除 API 实例 5.4. 管理员确认 6. 准备执行 EUS 更新 Expand section "6. 准备执行 EUS 更新" Collapse section "6. 准备执行 EUS 更新" 6.1. EUS 到 EUS 更新 Expand section "6.1. EUS 到 EUS 更新" Collapse section "6.1. EUS 到 EUS 更新" 6.1.1. 使用 Web 控制台进行 EUS 到 EUS 更新 6.1.2. 使用 CLI 进行 EUS 到 EUS 更新 6.1.3. 通过 Operator Lifecycle Manager 安装的分层产品和 Operator 的 EUS 到 EUS 更新 7. 准备使用手动维护的凭证更新集群 Expand section "7. 准备使用手动维护的凭证更新集群" Collapse section "7. 准备使用手动维护的凭证更新集群" 7.1. 使用手动维护的凭证更新集群的要求 Expand section "7.1. 使用手动维护的凭证更新集群的要求" Collapse section "7.1. 使用手动维护的凭证更新集群的要求" 7.1.1. 云凭证配置选项并根据平台类型更新要求 7.1.2. 使用 Web 控制台确定 Cloud Credential Operator 模式 7.1.3. 使用 CLI 确定 Cloud Credential Operator 模式 7.2. 为集群更新配置 Cloud Credential Operator 工具 7.3. 使用 Cloud Credential Operator 工具更新云供应商资源 7.4. 使用手动维护的凭证更新云供应商资源 7.5. 表示集群已准备好升级 8. 使用 Web 控制台更新集群 Expand section "8. 使用 Web 控制台更新集群" Collapse section "8. 使用 Web 控制台更新集群" 8.1. 先决条件 8.2. 执行 canary rollout 更新 8.3. 使用手动维护的凭证更新云供应商资源 8.4. 使用 Web 控制台暂停 MachineHealthCheck 资源 8.5. 关于更新单个节点 OpenShift Container Platform 8.6. 使用Web控制台更新集群 8.7. 使用 Web 控制台更改更新服务器 9. 使用 CLI 更新集群 Expand section "9. 使用 CLI 更新集群" Collapse section "9. 使用 CLI 更新集群" 9.1. 先决条件 9.2. 暂停 MachineHealthCheck 资源 9.3. 关于更新单个节点 OpenShift Container Platform 9.4. 使用 CLI 更新集群 9.5. 根据一个有条件的升级路径进行升级 9.6. 使用 CLI 更改更新服务器 10. 执行 canary rollout 更新 Expand section "10. 执行 canary rollout 更新" Collapse section "10. 执行 canary rollout 更新" 10.1. 关于 Canary rollout 更新过程和 MCP 10.2. 关于执行 canary rollout 更新 10.3. 创建机器配置池来执行 canary rollout 更新 10.4. 暂停机器配置池 10.5. 执行集群更新 10.6. 取消暂停机器配置池 Expand section "10.6. 取消暂停机器配置池" Collapse section "10.6. 取消暂停机器配置池" 10.6.1. 如果应用程序失败 10.7. 将节点移到原始机器配置池中 11. 更新包含使用 RHEL 的计算(compute)系统的集群 Expand section "11. 更新包含使用 RHEL 的计算(compute)系统的集群" Collapse section "11. 更新包含使用 RHEL 的计算(compute)系统的集群" 11.1. 先决条件 11.2. 使用Web控制台更新集群 11.3. 可选:添加 hook 以在RHEL系统上执行Ansible任务 Expand section "11.3. 可选:添加 hook 以在RHEL系统上执行Ansible任务" Collapse section "11.3. 可选:添加 hook 以在RHEL系统上执行Ansible任务" 11.3.1. 在升级过程中使用 Ansible hook 11.3.2. 配置Ansible inventory文件以使用 hook 11.3.3. RHEL计算系统可用的 hook 11.4. 更新集群中的RHEL compute 系统 12. 在断开连接的环境中更新集群 Expand section "12. 在断开连接的环境中更新集群" Collapse section "12. 在断开连接的环境中更新集群" 12.1. 关于在断开连接的环境中的集群更新 Expand section "12.1. 关于在断开连接的环境中的集群更新" Collapse section "12.1. 关于在断开连接的环境中的集群更新" 12.1.1. 镜像 OpenShift Container Platform 镜像存储库 12.1.2. 在断开连接的环境中执行集群更新 12.1.3. 从集群中删除 OpenShift Update Service 12.2. 镜像 OpenShift Container Platform 镜像存储库 Expand section "12.2. 镜像 OpenShift Container Platform 镜像存储库" Collapse section "12.2. 镜像 OpenShift Container Platform 镜像存储库" 12.2.1. 先决条件 12.2.2. 准备您的镜像主机 Expand section "12.2.2. 准备您的镜像主机" Collapse section "12.2.2. 准备您的镜像主机" 12.2.2.1. 通过下载二进制文件安装 OpenShift CLI 12.2.2.2. 配置允许对容器镜像进行镜像的凭证 12.2.3. 使用 oc-mirror 插件镜像资源 Expand section "12.2.3. 使用 oc-mirror 插件镜像资源" Collapse section "12.2.3. 使用 oc-mirror 插件镜像资源" 12.2.3.1. 关于 oc-mirror 插件 12.2.3.2. oc-mirror 兼容性和支持 12.2.3.3. 关于镜像 registry 12.2.3.4. 安装 oc-mirror OpenShift CLI 插件 12.2.3.5. 创建镜像设置配置 12.2.3.6. 将镜像集镜像(mirror)到镜像 registry Expand section "12.2.3.6. 将镜像集镜像(mirror)到镜像 registry" Collapse section "12.2.3.6. 将镜像集镜像(mirror)到镜像 registry" 12.2.3.6.1. 在部分断开连接的环境中镜像设置的镜像 Expand section "12.2.3.6.1. 在部分断开连接的环境中镜像设置的镜像" Collapse section "12.2.3.6.1. 在部分断开连接的环境中镜像设置的镜像" 12.2.3.6.1.1. 镜像(mirror)到镜像(mirror)的镜像 12.2.3.6.2. 镜像在完全断开连接的环境中设置的镜像 Expand section "12.2.3.6.2. 镜像在完全断开连接的环境中设置的镜像" Collapse section "12.2.3.6.2. 镜像在完全断开连接的环境中设置的镜像" 12.2.3.6.2.1. 从镜像镜像到磁盘 12.2.3.6.2.2. 从磁盘镜像到镜像 12.2.3.7. 配置集群以使用 oc-mirror 生成的资源 12.2.3.8. 保持镜像 registry 内容更新 Expand section "12.2.3.8. 保持镜像 registry 内容更新" Collapse section "12.2.3.8. 保持镜像 registry 内容更新" 12.2.3.8.1. 关于更新您的镜像 registry 内容 12.2.3.8.2. 更新您的镜像 registry 内容 12.2.3.9. 执行空运行 12.2.3.10. 以 OCI 格式镜像基于文件的目录 Operator 镜像 12.2.3.11. 镜像设置配置参数 12.2.3.12. 镜像设置配置示例 12.2.3.13. oc-mirror 的命令参考 12.2.4. 使用 oc adm release mirror 命令 mirror 镜像 12.3. 使用 OpenShift Update Service 在断开连接的环境中更新集群 Expand section "12.3. 使用 OpenShift Update Service 在断开连接的环境中更新集群" Collapse section "12.3. 使用 OpenShift Update Service 在断开连接的环境中更新集群" 12.3.1. 在断开连接的环境中使用 OpenShift Update Service 12.3.2. 先决条件 12.3.3. 为 OpenShift Update Service 配置对安全 registry 的访问 12.3.4. 更新全局集群 pull secret 12.3.5. 安装 OpenShift Update Service Operator Expand section "12.3.5. 安装 OpenShift Update Service Operator" Collapse section "12.3.5. 安装 OpenShift Update Service Operator" 12.3.5.1. 使用 Web 控制台安装 OpenShift Update Service Operator 12.3.5.2. 使用 CLI 安装 OpenShift Update Service Operator 12.3.6. 创建 OpenShift Update Service 图形数据容器镜像 12.3.7. 创建 OpenShift Update Service 应用程序 Expand section "12.3.7. 创建 OpenShift Update Service 应用程序" Collapse section "12.3.7. 创建 OpenShift Update Service 应用程序" 12.3.7.1. 使用 Web 控制台创建 OpenShift Update Service 应用程序 12.3.7.2. 使用 CLI 创建 OpenShift Update Service 应用程序 Expand section "12.3.7.2. 使用 CLI 创建 OpenShift Update Service 应用程序" Collapse section "12.3.7.2. 使用 CLI 创建 OpenShift Update Service 应用程序" 12.3.7.2.1. 配置 Cluster Version Operator(CVO) 12.3.8. 后续步骤 12.4. 在没有 OpenShift Update Service 的断开连接的环境中更新集群 Expand section "12.4. 在没有 OpenShift Update Service 的断开连接的环境中更新集群" Collapse section "12.4. 在没有 OpenShift Update Service 的断开连接的环境中更新集群" 12.4.1. 先决条件 12.4.2. 暂停 MachineHealthCheck 资源 12.4.3. 检索发行镜像摘要 12.4.4. 更新断开连接的集群 12.4.5. 配置镜像 registry 存储库镜像 12.4.6. 镜像镜像目录的范围,以减少集群节点重启的频率 12.4.7. 其他资源 12.5. 从集群中删除 OpenShift Update Service Expand section "12.5. 从集群中删除 OpenShift Update Service" Collapse section "12.5. 从集群中删除 OpenShift Update Service" 12.5.1. 删除 OpenShift Update Service 应用程序 Expand section "12.5.1. 删除 OpenShift Update Service 应用程序" Collapse section "12.5.1. 删除 OpenShift Update Service 应用程序" 12.5.1.1. 使用 Web 控制台删除 OpenShift Update Service 应用程序 12.5.1.2. 使用 CLI 删除 OpenShift Update Service 应用程序 12.5.2. 卸载 OpenShift Update Service Operator Expand section "12.5.2. 卸载 OpenShift Update Service Operator" Collapse section "12.5.2. 卸载 OpenShift Update Service Operator" 12.5.2.1. 使用 Web 控制台卸载 OpenShift Update Service Operator 12.5.2.2. 使用 CLI 卸载 OpenShift Update Service Operator 13. 更新在 vSphere 上运行的节点上运行的硬件 Expand section "13. 更新在 vSphere 上运行的节点上运行的硬件" Collapse section "13. 更新在 vSphere 上运行的节点上运行的硬件" 13.1. 更新 vSphere 上的虚拟硬件 Expand section "13.1. 更新 vSphere 上的虚拟硬件" Collapse section "13.1. 更新 vSphere 上的虚拟硬件" 13.1.1. 为 vSphere 上的 control plane 节点更新虚拟硬件 13.1.2. 更新 vSphere 上计算节点的虚拟硬件 13.1.3. 为 vSphere 上的模板更新虚拟硬件 13.2. 在 vSphere 上调度虚拟硬件的更新 14. preflight 验证内核模块管理 (KMM) 模块 Expand section "14. preflight 验证内核模块管理 (KMM) 模块" Collapse section "14. preflight 验证内核模块管理 (KMM) 模块" 14.1. 启动验证 14.2. 验证生命周期 14.3. 验证状态 14.4. 每个模块的 preflight 验证阶段 Expand section "14.4. 每个模块的 preflight 验证阶段" Collapse section "14.4. 每个模块的 preflight 验证阶段" 14.4.1. 镜像验证阶段 14.4.2. 构建验证阶段 14.4.3. 签名验证阶段 14.5. PreflightValidationOCP 资源示例 法律通告 Settings Close Language: 简体中文 한국어 日本語 English Français Language: 简体中文 한국어 日本語 English Français Format: Multi-page Single-page PDF Format: Multi-page Single-page PDF Language and Page Formatting Options Language: 简体中文 한국어 日本語 English Français Language: 简体中文 한국어 日本語 English Français Format: Multi-page Single-page PDF Format: Multi-page Single-page PDF 4.2. 影响更新持续时间的因素 以下因素可能会影响您的集群更新持续时间: 通过 Machine Config Operator (MCO) 将计算节点重启到新机器配置 机器配置池中的 MaxUnavailable 的值 pod 中断预算 (PDB) 中设定的最小副本数或百分比 集群中的节点数 集群节点的健康状况 Previous Next