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.1.2.16.2. 连接到 OpenShift Container Platform 集群 API 存在问题
症状: 安装程序完成,但无法使用 OpenShift Container Platform 集群 API。在 bootstrap 过程完成后,bootstrap 虚拟机仍处于在线状态。当您输入以下命令时,回复会超时。
oc login -u kubeadmin -p *** <apiurl>
$ oc login -u kubeadmin -p *** <apiurl>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 原因: 安装程序没有删除 bootstrap VM,因此没有释放集群的 API IP 地址。
解决方法:使用
wait-for
子命令,在 bootstrap 过程完成后获得通知:./openshift-install wait-for bootstrap-complete
$ ./openshift-install wait-for bootstrap-complete
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 当 bootstrap 过程完成后,删除 bootstrap 虚拟机:
./openshift-install destroy bootstrap
$ ./openshift-install destroy bootstrap
Copy to Clipboard Copied! Toggle word wrap Toggle overflow