<p>I'm running the following command and getting an error:</p>

<pre><code>$ kubectl get nodes
error: You must be logged in to the server (the server has asked for the client to provide credentials)
</code></pre>

<p>What's going on?</p>

<p>You have to run:</p>

<pre><code>$ gcloud container clusters get-credentials [cluster-name]
</code></pre>

<p>Docs <a href="https://cloud.google.com/sdk/gcloud/reference/container/clusters/get-credentials?hl=en_US&amp;_ga=1.254512651.2069297816.1484122139" rel="nofollow noreferrer">here</a>.</p>
