I am getting the following error when trying to run kubectl locally.
kubectl
error: couldn\'t read version from server: Get http://localhost:8080/api: dial tc
The above solution no longer works. You need to do the following instead:
gcloud container clusters get-credentials \ [--zone= --project=]