OpenShift CLI 登录问题



我在OpenShift V3上设置了一个帐户,现在我正在尝试与ocCLI连接。我使用的是与 Web 控制台相同的凭据,但无法登录,收到以下错误消息:

> oc login
Authentication required for https://api.starter-us-east-1.openshift.com:443 (openshift)
Username: my_login
Password:
error: The server was unable to respond - verify you have provided the correct host and port and that the server is currently running.

问题是您没有指定登录目的地。 创建项目(例如 Node.js(后,OpenShift 会提供登录时必须使用的连接凭据。

基本上,它是OpenShift上的API主机。

例如:

oc login https://api.starter-us-west-2.openshift.com
<小时 />

附言您可以在Builds%YOUR_BUILD%Configuration中找到正确的登录 URL,在TriggersGeneric Webhook URLGitHub Webhook URL下。

oc login YOUR_URL -u USER -p ADMIN这个cmd可能会有所帮助。

最新更新