首页 > 解决方案 > 无法获取集群配置 - IBM Cloud

问题描述

我在 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命令正常工作。

标签: kubernetesibm-cloud

解决方案


我发现在 eu-gb 区域ibmcloud ks cluster-config使用免费集群时出现问题。如果这适用于您,请尝试使用适当的区域端点来查看是否有帮助。

例如:

ibmcloud ks init --host https://eu-gb.containers.cloud.ibm.com

请参阅https://cloud.ibm.com/docs/containers?topic=containers-regions-and-zones#regions_free


推荐阅读