I have a private GKE cluster set up with dns-endpoint enabled and I am project owner in this GCP project, I used this command to get kubeconfig entry first, but I cannot connect to GKE. Any idea?
gcloud container clusters get-credentials cluster-xxx --region us-central1 --project project1 --dns-endpoint
Fetching cluster endpoint and auth data.
kubeconfig entry generated for cluster-xxx
kubectl get all -n my-test-namespace
E1213 12:18:21.866477 31297 memcache.go:265] couldn’t get current server API group list: Permission ‘container.googleapis.com/clusters.connect’ denied on resource ‘gke-d70e9e966917459997c6xxxxxx-12345678.us-central1.gke.goog’ (or it may not exists
Since I am a project owner, I should have “roles/container.developer” equivalent permission, why I still cannot connect to the cluster, what do I miss here. Thanks for your help!