Closed lavjain closed 6 months 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
The plugin is already installed inside google-cloud-sdk/bin directory and kubectl commands work properly from command line