kubernetic icon indicating copy to clipboard operation
kubernetic copied to clipboard

getting credentials: exec: executable gke-gcloud-auth-plugin not found

Open lavjain opened this issue 2 years ago • 1 comments

The plugin is already installed inside google-cloud-sdk/bin directory and kubectl commands work properly from command line

lavjain avatar Mar 17 '23 18:03 lavjain

On my mac, I had to modify the correct user.exec in my ~/.kube/config to change the command from gke-gcloud-auth-plugin to this:

command: /usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/bin/gke-gcloud-auth-plugin
provideClusterInfo: true # This needs to be added as well.

The path could be different. Source: https://kubernetes.io/docs/reference/access-authn-authz/authentication/#configuration

akashagarwal7 avatar Jun 01 '23 05:06 akashagarwal7