created: 2023-07-18T07:56:33.832Z

gke-gcloud-auth-plugin, which is needed for continued use of kubectl の対応

久しぶりに get-credentials することがあったが気がついたら ACTION REQUIRED な警告が出てしまっていた。

$ gcloud container clusters get-credentials

CRITICAL: ACTION REQUIRED: gke-gcloud-auth-plugin, which is needed for continued use of kubectl, was not found or is not executable. Install gke-gcloud-auth-plugin for use with kubectl by following https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke

提示されたページのガイダンスにしたがってインストールして完了。

$ gcloud components install gke-gcloud-auth-plugin

と思いきや今度は別の警告。

WARNING: There are other instances of Google Cloud tools on your system PATH. Please remove the following to avoid confusion or accidental invocation:

/opt/homebrew/share/google-cloud-sdk/bin/gcloud /opt/homebrew/share/google-cloud-sdk/bin/bq /opt/homebrew/share/google-cloud-sdk/bin/anthoscli /opt/homebrew/share/google-cloud-sdk/bin/docker-credential-gcloud /opt/homebrew/share/google-cloud-sdk/bin/gsutil

過去に brew dump でまとめて入っていたので消す必要があった。--cask で入れていたのでオプションをつけて削除する。

$ brew uninstall --cask google-cloud-sdk

参考

現代経済学の直観的方法
[ad] 現代経済学の直観的方法
長沼伸一郎 (Kindle版)