<p>I have a running cluster on Google Cloud Kubernetes engine and I want to access that using kubectl from my local system.</p>

<p>I tried installing kubectl with gcloud but it didn't worked. Then I installed kubectl using apt-get. When I try to see the version of it using kubectl version it says</p>

<p>Unable to connect to server EOF. I also don't have file ~/.kube/config, which I am not sure why. Can someone please tell me what I am missing here? How can I connect to the already running cluster in GKE?</p>

tank
<p><code>gcloud container clusters get-credentials ...</code> will auth you against the cluster using your gcloud credentials.</p>

<p>If successful, the command adds appropriate configuration to <code>~/.kube/config</code> such that you can <code>kubectl</code>.</p>
