How do I install gke-gcloud-auth-plugin on a Mac M1 with zsh
Oct 28
I try to install gke-gcloud-auth-plugin on a Mac M1 with zsh, following the gcloud docs.
The installation ran without issue and trying to re-run gcloud components install gke-gcloud-auth-plugin I get the All components are up to date. message.
However, gke-gcloud-auth-plugin --version returns zsh: command not found: gke-gcloud-auth-plugin. kubectl, installed the same way, works properly.
I tried to install kubectl using brew, with no more success.
1 answer
Accepted answer · original discussion
Oct 29
Not sure if it is the same on macOS. Can you try the following:
export USE_GKE_GCLOUD_AUTH_PLUGIN=True
Then reload the Cluster with
gcloud container clusters get-credentials clustername
Guess it is installed but just not used.
Maybe you just need to add the directory where to find your gke-gcloud-auth-plugin file to your PATH.
Is it working when you call it wirh absolute path?
path/to/gke-gcloud-auth-plugin --version
to find the file use the following command:
sudo find / -name gke-gcloud-auth-plugin
Your perspective belongs here.
Sign in with a verified account to contribute.
2 question comments
Use comments to ask for clarification. Post a solution as an answer.
Oct 28
Oct 31