Jump To Close Expand all Collapse all Table of contents 在 GCP 上安装 1. 在 GCP 上安装 Expand section "1. 在 GCP 上安装" Collapse section "1. 在 GCP 上安装" 1.1. 配置 GCP 项目 Expand section "1.1. 配置 GCP 项目" Collapse section "1.1. 配置 GCP 项目" 1.1.1. 创建一个 GCP 项目 1.1.2. 在 GCP 中启用 API 服务 1.1.3. 为 GCP 配置 DNS 1.1.4. GCP 帐户限值 1.1.5. 在 GCP 中创建服务帐户 Expand section "1.1.5. 在 GCP 中创建服务帐户" Collapse section "1.1.5. 在 GCP 中创建服务帐户" 1.1.5.1. 所需的 GCP 权限 1.1.6. 支持的 GCP 区域 1.1.7. 后续步骤 1.2. 在 GCP 上快速安装集群 Expand section "1.2. 在 GCP 上快速安装集群" Collapse section "1.2. 在 GCP 上快速安装集群" 1.2.1. 先决条件 1.2.2. OpenShift Container Platform 对互联网和 Telemetry 的访问 1.2.3. 生成 SSH 私钥并将其添加到代理中 1.2.4. 获取安装程序 1.2.5. 部署集群 1.2.6. 通过下载二进制文件安装 CLI Expand section "1.2.6. 通过下载二进制文件安装 CLI" Collapse section "1.2.6. 通过下载二进制文件安装 CLI" 1.2.6.1. 在 Linux 上安装 CLI 1.2.6.2. 在 Windows 上安装 CLI 1.2.6.3. 在 macOS 上安装 CLI 1.2.7. 登录集群 1.2.8. 后续步骤 1.3. 使用自定义在 GCP 上安装集群 Expand section "1.3. 使用自定义在 GCP 上安装集群" Collapse section "1.3. 使用自定义在 GCP 上安装集群" 1.3.1. 先决条件 1.3.2. OpenShift Container Platform 对互联网和 Telemetry 的访问 1.3.3. 生成 SSH 私钥并将其添加到代理中 1.3.4. 获取安装程序 1.3.5. 创建安装配置文件 Expand section "1.3.5. 创建安装配置文件" Collapse section "1.3.5. 创建安装配置文件" 1.3.5.1. 安装配置参数 1.3.5.2. GCP 自定义 install-config.yaml 文件示例 1.3.6. 部署集群 1.3.7. 通过下载二进制文件安装 CLI Expand section "1.3.7. 通过下载二进制文件安装 CLI" Collapse section "1.3.7. 通过下载二进制文件安装 CLI" 1.3.7.1. 在 Linux 上安装 CLI 1.3.7.2. 在 Windows 上安装 CLI 1.3.7.3. 在 macOS 上安装 CLI 1.3.8. 登录集群 1.3.9. 后续步骤 1.4. 使用自定义设置在 GCP 上安装集群 Expand section "1.4. 使用自定义设置在 GCP 上安装集群" Collapse section "1.4. 使用自定义设置在 GCP 上安装集群" 1.4.1. 先决条件 1.4.2. OpenShift Container Platform 对互联网和 Telemetry 的访问 1.4.3. 生成 SSH 私钥并将其添加到代理中 1.4.4. 获取安装程序 1.4.5. 创建安装配置文件 Expand section "1.4.5. 创建安装配置文件" Collapse section "1.4.5. 创建安装配置文件" 1.4.5.1. 安装配置参数 1.4.5.2. 网络配置参数 1.4.5.3. GCP 自定义 install-config.yaml 文件示例 1.4.6. 修改高级网络配置参数 1.4.7. Cluster Network Operator 配置 Expand section "1.4.7. Cluster Network Operator 配置" Collapse section "1.4.7. Cluster Network Operator 配置" 1.4.7.1. OpenShift SDN 网络供应商的配置参数 1.4.7.2. OVN-Kubernetes 网络供应商的配置参数 1.4.7.3. Cluster Network Operator 配置示例 1.4.8. 部署集群 1.4.9. 通过下载二进制文件安装 CLI Expand section "1.4.9. 通过下载二进制文件安装 CLI" Collapse section "1.4.9. 通过下载二进制文件安装 CLI" 1.4.9.1. 在 Linux 上安装 CLI 1.4.9.2. 在 Windows 上安装 CLI 1.4.9.3. 在 macOS 上安装 CLI 1.4.10. 登录集群 1.4.11. 后续步骤 1.5. 将 GCP 上的集群安装到现有的 VPC 中 Expand section "1.5. 将 GCP 上的集群安装到现有的 VPC 中" Collapse section "1.5. 将 GCP 上的集群安装到现有的 VPC 中" 1.5.1. 先决条件 1.5.2. OpenShift Container Platform 对互联网和 Telemetry 的访问 1.5.3. 生成 SSH 私钥并将其添加到代理中 1.5.4. 获取安装程序 1.5.5. 创建安装配置文件 Expand section "1.5.5. 创建安装配置文件" Collapse section "1.5.5. 创建安装配置文件" 1.5.5.1. 安装配置参数 1.5.5.2. GCP 自定义 install-config.yaml 文件示例 1.5.5.3. 在安装过程中配置集群范围代理 1.5.6. 部署集群 1.5.7. 通过下载二进制文件安装 CLI Expand section "1.5.7. 通过下载二进制文件安装 CLI" Collapse section "1.5.7. 通过下载二进制文件安装 CLI" 1.5.7.1. 在 Linux 上安装 CLI 1.5.7.2. 在 Windows 上安装 CLI 1.5.7.3. 在 macOS 上安装 CLI 1.5.8. 登录集群 1.5.9. 后续步骤 1.6. 在 GCP 上安装私有集群 Expand section "1.6. 在 GCP 上安装私有集群" Collapse section "1.6. 在 GCP 上安装私有集群" 1.6.1. 先决条件 1.6.2. 私有集群 Expand section "1.6.2. 私有集群" Collapse section "1.6.2. 私有集群" 1.6.2.1. GCP 中的私有群集 Expand section "1.6.2.1. GCP 中的私有群集" Collapse section "1.6.2.1. GCP 中的私有群集" 1.6.2.1.1. 限制: 1.6.3. 关于使用自定义 VPC Expand section "1.6.3. 关于使用自定义 VPC" Collapse section "1.6.3. 关于使用自定义 VPC" 1.6.3.1. 使用 VPC 的要求 1.6.3.2. 权限划分 1.6.3.3. 集群间隔离 1.6.4. OpenShift Container Platform 对互联网和 Telemetry 的访问 1.6.5. 生成 SSH 私钥并将其添加到代理中 1.6.6. 获取安装程序 1.6.7. 手动创建安装配置文件 Expand section "1.6.7. 手动创建安装配置文件" Collapse section "1.6.7. 手动创建安装配置文件" 1.6.7.1. 安装配置参数 1.6.7.2. GCP 自定义 install-config.yaml 文件示例 1.6.7.3. 在安装过程中配置集群范围代理 1.6.8. 部署集群 1.6.9. 通过下载二进制文件安装 CLI Expand section "1.6.9. 通过下载二进制文件安装 CLI" Collapse section "1.6.9. 通过下载二进制文件安装 CLI" 1.6.9.1. 在 Linux 上安装 CLI 1.6.9.2. 在 Windows 上安装 CLI 1.6.9.3. 在 macOS 上安装 CLI 1.6.10. 登录集群 1.6.11. 后续步骤 1.7. 使用 Deployment Manager 模板在 GCP 上安装集群 Expand section "1.7. 使用 Deployment Manager 模板在 GCP 上安装集群" Collapse section "1.7. 使用 Deployment Manager 模板在 GCP 上安装集群" 1.7.1. 先决条件 1.7.2. 证书签名请求管理 1.7.3. 配置 GCP 项目 Expand section "1.7.3. 配置 GCP 项目" Collapse section "1.7.3. 配置 GCP 项目" 1.7.3.1. 创建一个 GCP 项目 1.7.3.2. 在 GCP 中启用 API 服务 1.7.3.3. 为 GCP 配置 DNS 1.7.3.4. GCP 帐户限值 1.7.3.5. 在 GCP 中创建服务帐户 Expand section "1.7.3.5. 在 GCP 中创建服务帐户" Collapse section "1.7.3.5. 在 GCP 中创建服务帐户" 1.7.3.5.1. 所需的 GCP 权限 1.7.3.6. 支持的 GCP 区域 1.7.3.7. 为 GCP 安装和配置 CLI 工具 1.7.4. 为 GCP 创建安装文件 Expand section "1.7.4. 为 GCP 创建安装文件" Collapse section "1.7.4. 为 GCP 创建安装文件" 1.7.4.1. 创建安装配置文件 1.7.4.2. 在安装过程中配置集群范围代理 1.7.4.3. 创建 Kubernetes 清单和 Ignition 配置文件 1.7.5. 导出常用变量 Expand section "1.7.5. 导出常用变量" Collapse section "1.7.5. 导出常用变量" 1.7.5.1. 提取基础架构名称 1.7.5.2. 为 Deployment Manager 模板导出常用变量 1.7.6. 在 GCP 中创建 VPC Expand section "1.7.6. 在 GCP 中创建 VPC" Collapse section "1.7.6. 在 GCP 中创建 VPC" 1.7.6.1. VPC 的 Deployment Manager 模板 1.7.7. 在 GCP 中创建网络和负载均衡组件 Expand section "1.7.7. 在 GCP 中创建网络和负载均衡组件" Collapse section "1.7.7. 在 GCP 中创建网络和负载均衡组件" 1.7.7.1. 网络和负载均衡器的 Deployment Manager 模板 1.7.8. 在 GCP 中创建防火墙规则和 IAM 角色 Expand section "1.7.8. 在 GCP 中创建防火墙规则和 IAM 角色" Collapse section "1.7.8. 在 GCP 中创建防火墙规则和 IAM 角色" 1.7.8.1. 防火墙规则和 IAM 角色的 Deployment Manager 模板 1.7.9. 为 GCP 基础架构创建 RHCOS 集群镜像 1.7.10. 在 GCP 中创建 bootstrap 机器 Expand section "1.7.10. 在 GCP 中创建 bootstrap 机器" Collapse section "1.7.10. 在 GCP 中创建 bootstrap 机器" 1.7.10.1. bootstrap 机器的 Deployment Manager 模板 1.7.11. 在 GCP 中创建 control plane 机器 Expand section "1.7.11. 在 GCP 中创建 control plane 机器" Collapse section "1.7.11. 在 GCP 中创建 control plane 机器" 1.7.11.1. control plane 机器的 Deployment Manager 模板 1.7.12. 等待 bootstrap 完成并删除 GCP 中的 bootstrap 资源 1.7.13. 在 GCP 中创建额外的 worker 机器 Expand section "1.7.13. 在 GCP 中创建额外的 worker 机器" Collapse section "1.7.13. 在 GCP 中创建额外的 worker 机器" 1.7.13.1. worker 机器的 Deloyment Manager 模板 1.7.14. 通过下载二进制文件安装 CLI Expand section "1.7.14. 通过下载二进制文件安装 CLI" Collapse section "1.7.14. 通过下载二进制文件安装 CLI" 1.7.14.1. 在 Linux 上安装 CLI 1.7.14.2. 在 Windows 上安装 CLI 1.7.14.3. 在 macOS 上安装 CLI 1.7.15. 登录集群 1.7.16. 批准机器的证书签名请求 1.7.17. 可选:添加入口 DNS 记录 1.7.18. 在用户置备的基础架构上完成 GCP 安装 1.7.19. 后续步骤 1.8. 在受限网络中的 GCP 上安装集群 Expand section "1.8. 在受限网络中的 GCP 上安装集群" Collapse section "1.8. 在受限网络中的 GCP 上安装集群" 1.8.1. 先决条件 1.8.2. 配置 GCP 项目 Expand section "1.8.2. 配置 GCP 项目" Collapse section "1.8.2. 配置 GCP 项目" 1.8.2.1. 创建一个 GCP 项目 1.8.2.2. 在 GCP 中启用 API 服务 1.8.2.3. 为 GCP 配置 DNS 1.8.2.4. GCP 帐户限值 1.8.2.5. 在 GCP 中创建服务帐户 Expand section "1.8.2.5. 在 GCP 中创建服务帐户" Collapse section "1.8.2.5. 在 GCP 中创建服务帐户" 1.8.2.5.1. 所需的 GCP 权限 1.8.2.6. 支持的 GCP 区域 1.8.2.7. 为 GCP 安装和配置 CLI 工具 1.8.3. 为 GCP 创建安装文件 Expand section "1.8.3. 为 GCP 创建安装文件" Collapse section "1.8.3. 为 GCP 创建安装文件" 1.8.3.1. 创建安装配置文件 1.8.3.2. 创建 Kubernetes 清单和 Ignition 配置文件 1.8.4. 导出常用变量 Expand section "1.8.4. 导出常用变量" Collapse section "1.8.4. 导出常用变量" 1.8.4.1. 提取基础架构名称 1.8.4.2. 为 Deployment Manager 模板导出常用变量 1.8.5. 在 GCP 中创建 VPC Expand section "1.8.5. 在 GCP 中创建 VPC" Collapse section "1.8.5. 在 GCP 中创建 VPC" 1.8.5.1. VPC 的 Deployment Manager 模板 1.8.6. 在 GCP 中创建网络和负载均衡组件 Expand section "1.8.6. 在 GCP 中创建网络和负载均衡组件" Collapse section "1.8.6. 在 GCP 中创建网络和负载均衡组件" 1.8.6.1. 网络和负载均衡器的 Deployment Manager 模板 1.8.7. 在 GCP 中创建防火墙规则和 IAM 角色 Expand section "1.8.7. 在 GCP 中创建防火墙规则和 IAM 角色" Collapse section "1.8.7. 在 GCP 中创建防火墙规则和 IAM 角色" 1.8.7.1. 防火墙规则和 IAM 角色的 Deployment Manager 模板 1.8.8. 为 GCP 基础架构创建 RHCOS 集群镜像 1.8.9. 在 GCP 中创建 bootstrap 机器 Expand section "1.8.9. 在 GCP 中创建 bootstrap 机器" Collapse section "1.8.9. 在 GCP 中创建 bootstrap 机器" 1.8.9.1. bootstrap 机器的 Deployment Manager 模板 1.8.10. 在 GCP 中创建 control plane 机器 Expand section "1.8.10. 在 GCP 中创建 control plane 机器" Collapse section "1.8.10. 在 GCP 中创建 control plane 机器" 1.8.10.1. control plane 机器的 Deployment Manager 模板 1.8.11. 等待 bootstrap 完成并删除 GCP 中的 bootstrap 资源 1.8.12. 在 GCP 中创建额外的 worker 机器 Expand section "1.8.12. 在 GCP 中创建额外的 worker 机器" Collapse section "1.8.12. 在 GCP 中创建额外的 worker 机器" 1.8.12.1. worker 机器的 Deloyment Manager 模板 1.8.13. 登录集群 1.8.14. 批准机器的证书签名请求 1.8.15. 可选:添加入口 DNS 记录 1.8.16. 在用户置备的基础架构上完成 GCP 安装 1.8.17. 后续步骤 1.9. 在 GCP 上卸载集群 Expand section "1.9. 在 GCP 上卸载集群" Collapse section "1.9. 在 GCP 上卸载集群" 1.9.1. 删除使用安装程序置备的基础架构的集群 法律通告 Settings Close Language: 日本語 简体中文 English Language: 日本語 简体中文 English Format: Multi-page Single-page Format: Multi-page Single-page Language and Page Formatting Options Language: 日本語 简体中文 English Language: 日本語 简体中文 English Format: Multi-page Single-page Format: Multi-page Single-page 在 GCP 上安装 OpenShift Container Platform 4.4安装 OpenShift Container Platform GCP 集群Red Hat OpenShift Documentation Team法律通告摘要 本文档提供在 Google Cloud Platform 上安装和卸载 OpenShift Container Platform 集群的说明。 Next