<p>I have a new laptop and kubernetes cluster running on Google Cloud Platform. How can I access that cluster from local machine to execute kubectl commands, open dashboard etc?</p>

<p>That is not clearly stated in the documentation.</p>

shalakhin
<p>From your local workstation, you need to have the <code>gcloud</code> tool installed and properly configured to connect to the correct GCE account. Then you can run:</p>

<pre><code> gcloud container clusters get-credentials [CLUSTER_NAME]
</code></pre>

<p>This will setup <code>kubectl</code> to connect to your kubernetes cluster.</p>

<p>Of course you'll need to install kubectl either using gcloud with:</p>

<pre><code>gcloud components install kubectl
</code></pre>

<p>Or using specific instructions for your operating system.</p>

<p>Please check the following link for more details: <a href="https://cloud.google.com/kubernetes-engine/docs/quickstart" rel="nofollow noreferrer">https://cloud.google.com/kubernetes-engine/docs/quickstart</a></p>

<p>Once you have kubectl access you can deploy and access the kubernetes dashboard as described here: <a href="https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/" rel="nofollow noreferrer">https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/</a></p>
