4

Google Cloud Platform には、3 つの実行中のインスタンスを持つ Container-Cluster があります。コマンドを実行できるように、端末から接続したいと思いkubectlます。このために、コマンドを実行しました

gcloud container clusters get-credentials cluster-1 --zone europe-west1-b --project project-id

もちろん、実際のプロジェクト名を使用しています。これは、[クラスターに接続] をクリックしたときにダッシュボードに表示されるコマンドです。このコマンドの出力は次のとおりです。

Fetching cluster endpoint and auth data.
kubeconfig entry generated for cluster-1.

しかし、kubectl後でコマンドを実行するkubectl cluster-infoと、いつものように次のようになります。

Unable to connect to the server: oauth2: cannot fetch token: 400 Bad Request
Response: {
  "error" : "invalid_grant",
  "error_description" : "Token has been revoked."
}

ここで何が欠けていますか?仕事gcloudのようなコマンドgcloud container clusters list

4

1 に答える 1