When I type gcloud container clusters get-credentials
, I get response entry generated for ***.
. and it looks like it is generated, but when I hit kubectl config view
, there is nothing.
Reference of gcloud container clusters get-credentials
says,
gcloud container clusters get-credentials updates a kubeconfig file with appropriate credentials and endpoint information to point kubectl at a specific cluster in Google Kubernetes Engine.
So I thought the problem was that ~/.kube/config
did not exist, but creating an empty file did not change it.