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.
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