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.13.4.23. 创建 control plane 节点
您可以通过运行 masters.yml
playbook 来创建 control plane 节点。此 playbook 将 master.ign
Ignition 文件传递给每个虚拟机。Ignition 文件包含 control plane 节点的指令,可从 URL(如 https://api-int.ocp4.example.org:22623/config/master
)获取 Ignition。这个 URL 中的端口号由负载均衡器管理,且只能在集群中访问。
流程
创建 control plane 节点:
ansible-playbook -i inventory.yml masters.yml
$ ansible-playbook -i inventory.yml masters.yml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 在 playbook 创建 control plane 时,监控 bootstrap 过程:
openshift-install wait-for bootstrap-complete --dir $ASSETS_DIR
$ openshift-install wait-for bootstrap-complete --dir $ASSETS_DIR
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 输出示例
INFO API v1.18.3+b74c5ed up INFO Waiting up to 40m0s for bootstrapping to complete...
INFO API v1.18.3+b74c5ed up INFO Waiting up to 40m0s for bootstrapping to complete...
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 当 control plane 节点上所有 pod 都启动并运行 etcd 时,安装程序会显示以下输出。
输出示例
INFO It is now safe to remove the bootstrap resources
INFO It is now safe to remove the bootstrap resources
Copy to Clipboard Copied! Toggle word wrap Toggle overflow