This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.12.5.19. 在 RHOSP 中创建 control plane 机器
使用您生成的 Ignition 配置文件创建三台 control plane 机器。红帽提供了一个 Ansible playbook,您可运行它来简化此过程。
先决条件
- 您下载了"下载 playbook 依赖项"中的模块。
- 下载了"下载安装 playbook"中的 playbook。
-
来自安装程序元数据文件中的基础架构 ID 被设置为环境变量(
$INFRA_ID
)。 -
inventory.yaml
、common.yaml
和control-plane.yaml
Ansible playbook 位于一个通用目录中。 - 您有三个在"Creating control plane Ignition 配置文件"中创建的 Ignition 文件。
流程
- 在命令行中,将工作目录改为 playbook 的位置。
- 如果 control plane Ignition 配置文件尚未位于工作目录中,将其复制到其中。
在命令行中运行
control-plane.yaml
playbook:ansible-playbook -i inventory.yaml control-plane.yaml
$ ansible-playbook -i inventory.yaml control-plane.yaml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 运行以下命令来监控 bootstrap 过程:
openshift-install wait-for bootstrap-complete
$ openshift-install wait-for bootstrap-complete
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 您会看到确认 control plane 机器正在运行并加入集群的消息:
INFO API v1.14.6+f9b5405 up INFO Waiting up to 30m0s for bootstrapping to complete... ... INFO It is now safe to remove the bootstrap resources
INFO API v1.14.6+f9b5405 up INFO Waiting up to 30m0s for bootstrapping to complete... ... INFO It is now safe to remove the bootstrap resources
Copy to Clipboard Copied! Toggle word wrap Toggle overflow