<p>I have created a cluster on GCE and I am trying to register that in GKE console. </p>

<p>I have created a service account with the roles:</p>

<p><strong>roles/owner, 
roles/editor, 
roles/gkehub.connect</strong></p>

<p>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?</p>

<p><em>gcloud container hub memberships register remote-cluster --context=remote-cluster --service-account-key-file=./workdir/gkehub-7c3ea7087141.json</em></p>

<p><strong>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)</strong></p>

<p>Thanks in advance! </p>

<p>Install this sdk plugin solved my problem.</p>
<pre><code>sudo apt-get install google-cloud-sdk-gke-gcloud-auth-plugin
</code></pre>
