
Explanation:
The error indicates the kubeconfig is outdated or missing cluster credentials. get-credentials updates the kubeconfig with current auth and endpoint info. Authentication is already done, API likely enabled if cluster exists.
Ultimate access to all questions.
Your gcloud is authenticated but kubectl get pods fails with "connection refused". First fix?
A
Reinstall kubectl
B
gcloud container clusters get-credentials <cluster> --region <r> to refresh kubeconfig
C
Grant Kubernetes Engine Admin
D
Enable the GKE API
No comments yet.