Unable to connect to GKE cluster, gke-gcloud-auth-plugin not found
Opened this issue · 1 comments
znorris commented
I'm receiving an error when attempting to use kubenav Version 4.2.3 (89)
for mac-intel. The remote cluster is hosted on Google Kubernetes Engine. When listing pods the error reads:
Exception: Get 'https://2.2.2.2/api/v1/namespaces/default/pods': getting credentials: exec: executable gke-gcloud-auth-plugin not found
On my system it's located at: /Users/bob/google-cloud-sdk/bin/gke-gcloud-auth-plugin
.
znorris commented
The best solution I've found is to edit ~/.kube/config
, find where gke-gcloud-auth-plugin
is referenced, and update the value to its full path.
Original:
user:
exec:
apiVersion: client.authentication.k8s.io/v1beta1
args: null
- command: gke-gcloud-auth-plugin
+ command: /Users/bob/google-cloud-sdk/bin/gke-gcloud-auth-plugin
env: null
installHint: Install gke-gcloud-auth-plugin for use with kubectl by following
https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke
interactiveMode: IfAvailable
provideClusterInfo: true