I have created a cluster on GCE and I am trying to register that in GKE console.
I have created a service account with the roles:
roles/owner, roles/editor, roles/gkehub.connect
But, when I try to register my remote-cluster on GKE console, I am getting below error. Cloud someone help me to get out of this?
gcloud container hub memberships register remote-cluster --context=remote-cluster --service-account-key-file=./workdir/gkehub-7c3ea7087141.json
ERROR: (gcloud.container.hub.memberships.register) Failed to check if the user is a cluster-admin: Unable to connect to the server: context deadline exceeded (Client.Timeout exceeded while awaiting headers)
Thanks in advance!