<p>I have followed the installation steps:
<a href="https://cloud.google.com/container-engine/docs/tutorials/guestbook#install_gcloud_and_kubectl" rel="noreferrer">https://cloud.google.com/container-engine/docs/tutorials/guestbook#install_gcloud_and_kubectl</a></p>

<p>A Google Container Engine cluster is up and running and gcloud CLI is authenticated and works.</p>

<p>But kubectl says: 
    <code>"couldn't read version from server: Get http://local host:8080/api: dial tcp 127.0.0.1:8080: connection refused"</code></p>

<p>I think I need to use <code>kubectl config set-cluster</code> to setup the connection to my cluster on GCE.</p>

<p>Where do I find the address of the Kubernetes master of my GCE cluster?
With <code>gcloud beta container clusters list</code> I seemingly get the master IP of my cluster.
I used that with <code>kubectl config set-cluster</code>.</p>

<p>Now it says:
    <code>"error: couldn't read version from server: Get http://     104.197.49.119/api: dial tcp 104.197.49.119:80: i/o timeout"</code></p>

<p>Am I on the right track with this?</p>

<p>Additional strangeness:</p>

<ul>
<li><p><code>gcloud container</code> or <code>gcloud preview container</code> doesn't work for me. Only <code>gcloud beta container</code> </p></li>
<li><p>MASTER_VERSION of my cluster is 0.21.4, while the version of my kubectl client is GitVersion:"v0.20.2", even though freshly installed with gcloud.</p></li>
</ul>

<p>Run</p>

<p><code>gcloud container clusters get-credentials my-cluster-name</code></p>

<p>to update the kubeconfig file and point kubectl at a cluster on Google Container Engine.</p>
