インフラ系SEの技術メモ

雑なエンジニアが低信頼性のメモを書いています。参考程度にとどめてください。

The specified cluster could not be found. If applicable, make sure that you target the correct resource group or region. (A0006)というエラー

発生したエラー

下記のようにIKSクラスターの設定ファイルを落とそうとするも以下エラーに

$ ibmcloud ks cluster config --cluster hoge/fuga

The specified cluster could not be found. If applicable, make sure that you target the correct resource group or region. (A0006)

To list the clusters you have access to, run 'ibmcloud ks cluster ls'. To set the resource group, get the cluster's resource group, compare it to
 groups that you have access to, and target the group: 'ibmcloud ks cluster get <cluster_name_or_ID>', 'ibmcloud resource groups', and 'ibmcloud
target -g <resource_group>'. To target a region, run 'ibmcloud ks init --host <regional_endpoint>'.
Incident ID: xx

原因は指定しすぎ

私の勘違いでコンテキスト名を記載していましたが

ibmcloud ks cluster ls

で表示される名前で良かったみたいです。なるほど。