我有一个管道,可以部署到默认资源组以外的资源组中的IBM Cloud Kubernetes集群。最近,我开始看到表格的错误......
The specified cluster could not be found. If you're using resource groups, make sure that you target the correct resource group.
我该怎么做才能解决这个问题?
这很可能是因为对IBM Cloud命令行(即“ibmcloud ks”或“ibmcloud cs”)进行了更改,现在需要在执行“cluster-config”命令之前设置资源组。如果您看到这一点,那么您现在应该可以通过进入管道的部署阶段,在“资源组”字段中选择正确的资源组然后保存阶段来解决此问题。
我们正在进行更新以响应ibmcloud命令中的更改,并在完成并测试后立即将其释放。
可能您的本地资源组与群集的资源组不匹配:
更改目标资源组,如下所示:
$ ibmcloud ks clusters
Name ID State Created Workers Location Version Resource Group Name
mycluster-dev 236*******1071 normal 6 months ago 6 Washington 1.12.6_1521 My-Resource-Group
# Change the targeted resource group
$ ibmcloud target -g My-Resource-Group
$ ibmcloud ks cluster-config mycluster-dev
OK
The configuration for mycluster-dev was downloaded successfully.
Export environment variables to start using Kubernetes.
export KUBECONFIG=/home/.../.bluemix/plugins/.....yml