<p>About 7 hours ago i was working with kubectl without problems. Now (after a few hours of sleep, and a reboot of my computer) all kubectl get commands gives me this error:</p>

<pre><code>Unable to connect to the server: net/http: TLS handshake timeout
</code></pre>

<p>I did not do anything since it worked besides shut down my computer.</p>

<p>Since I'm new with Kubernetes and GCE i need a few hints on what this could be, and where to look.</p>

<p>So i found the problem.</p>

<p>kubernetes was set to use the wrong context and cluster (i had created a GC project and deleted it again, and the created a new project).</p>

<p>I got the new credentials from GC:</p>

<pre><code>gcloud container clusters get-credentials CLUSTER_NAME_FROM_GC
</code></pre>

<p>To get the new context name and cluster name i used:</p>

<pre><code>kubectl config view
</code></pre>

<p>And to update the current context and cluster i used:</p>

<pre><code>kubectl config set-cluster CLUSTER_NAME_FROM_CREDENTIALS
kubectl config set-context CONTEXT_NAME_FROM_CREDENTIALS
</code></pre>

<p>This fixed the problem.</p>
