【发布时间】:2019-05-09 09:01:03
【问题描述】:
我在 IBM Cloud 上创建了一个无法访问的集群。当我尝试以下命令时
ibmcloud ks cluster-config mycluster
我收到了这个回复:
失败
{"incidentID":"4d426527e73acd83-CDG","code":"A0006","description":"The specified cluster could not be found. Target a region. If you're using resource groups, make sure that you target the correct resource group.","type":"Authentication","recoveryCLI":"To list the clusters you have access to, run 'ibmcloud ks clusters'. To check the resource group ID of the cluster, run 'ibmcloud ks cluster-get \u003ccluster_name_or_ID\u003e'. To list the resource groups that you have access, run 'ibmcloud resource groups'. To target the resource group, run 'ibmcloud target -g \u003cresource_group\u003e'. To target a region, run 'ibmcloud ks region-set'."}
我已尝试联系 IBM 支持团队,但我的问题仍然没有任何有用的答案。但是当我尝试这个来获取我的集群列表时,它可以工作,并且我可以看到我的集群确实存在。
我还尝试了 JSON 错误消息中的所有命令,但仍然不起作用。
ibmcloud ks clusters
根据我在 IBM 上看到的情况,ibmcloud ks cluster-config mycluster 命令应该下载配置文件,但由于它甚至找不到我的集群,所以我什么也得不到。
希望有人以前遇到过这个问题和/或可以帮助我解决这个问题,我的想法已经不多了。
更新
我也试过了
ibmcloud ks cluster-config --cluster mycluster
它返回相同的 JSON 错误消息。
我的操作系统是 Ubuntu 16.04
更新 2
即使我设法手动获取集群配置并部署“hello-world”应用程序,所有引用集群的命令,如 ibmcloud ks workers <cluster_name_or_ID> 和 ibmcloud ks cluster-config <cluster_name_or_ID> 仍然不起作用,我坚信有如果这些命令不能正常工作,就无法充分使用 IBM Cloud。
【问题讨论】:
-
ibmcloud ks cluster-config --cluster <cluster name or ID>是语法。这是您的问题还是您的实际命令中的错误? -
都不是,我的朋友。在写我的帖子之前,我实际上尝试了你刚才提到的命令,我得到了完全相同的信息。顺便说一句,我要更新我的帖子。
-
您的命令应该只使用集群名称(不需要 --cluster)。看起来它找不到您的集群,当您运行
ibmcloud ks clusters命令时返回什么并且您的目标区域是否正确? -
它返回我拥有的集群列表,而我只有一个。我得到它的名称、ID、状态、创建日期、正确的资源组等等。关于我的集群的所有正确信息。但由于某种原因,
ibmcloud ks cluster-config mycluster不起作用。 -
与 ubuntu 19.04 和 ibmcloud 0.16.3 相同的问题
标签: kubernetes ibm-cloud