harbur / kubernetic

Kubernetic - Supercharge your Kubernetes clusters
https://kubernetic.com
276 stars 26 forks source link

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

Closed lavjain closed 6 months ago

lavjain commented 1 year ago

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

akashagarwal7 commented 1 year ago

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