无法使用CLI登录到openshift

无法使用CLI登录到openshift,openshift,openshift-client-tools,Openshift,Openshift Client Tools,我正在尝试登录starter openshift服务器。然后获取错误: C:\Users\Admin>oc登录https://console-openshift-console.apps.us-west-1.online-starter.openshift.com 错误:无效字符“您应该使用api URL登录,而不是控制台URL,例如https://console-openshift-console.apps.us-west-1.online-starter.openshift.com。默认情况

我正在尝试登录starter openshift服务器。然后获取错误:

C:\Users\Admin>oc登录https://console-openshift-console.apps.us-west-1.online-starter.openshift.com

错误:无效字符“您应该使用
api URL
登录,而不是控制台URL,例如
https://console-openshift-console.apps.us-west-1.online-starter.openshift.com
。默认情况下,api URL使用的是
6443
端口

# oc login https://<api url>:6443
通常,api URL格式为
api..

有关更多详细信息,请参阅。

它对我有效

# oc login https://<api url>:6443
#oc登录https://:6443

好的,在哪里可以找到API url?当我尝试连接oc登录时,我收到
错误:拨号tcp 54.153.124.11:6443:i/o超时-请验证您提供了正确的主机和端口,并且服务器当前正在运行。
此地址只有2个打开的端口:80和443。明白了。如果我无法访问kubeconfig怎么办?我只能通过浏览器访问openshift在线控制台。因为它是redhat test-cluster.Then,如果您有
cluster admin
角色,您将从
machine config api
项目中查找
configmap
configured
api URL
<代码>api URL
显示在控制平面的
kubeconfig
文件、安装日志和
configmaps
中。请访问。
# oc login https://<api url>:6443