Fixing the Error that kubectl cannot connect to GKE cluster #
Error #
$ kubectl get pods
Unable to connect to the server: dial tcp 10.169.250.14:443: i/o timeout
Cause #
The kubeconfig does not has appropriate credentials and endpoint information to point kubectl
at a specific cluster in GKE.
Solution #
gcloud container clusters get-credentials sample-cluster --zone=us-central1-f
Reference #
https://cloud.google.com/sdk/gcloud/reference/container/clusters/get-credentials