Problem scenario
You run a command like this to view your Google Kubernetes Engine (GKE) clusters:
kubectl get pods
You see this:
'Unable to connect to the server: error executing access token command "/google/google-cloud-sdk/bin/gcloud config config-helper --format=json": err=fork/exec /google/google-cloud-sdk/bin/gcloud: no such file or directory output= stderr='
What should you do?
Solution
Check your config file in the .kube directory. What is the value for "cmd-path"? Does it match up which where your gcloud file is on your Linux server? Make sure the two match.
Thanks. It worked.