<p>NodePort
This way of accessing Dashboard is only recommended for development environments in a single node setup.</p>

<p>Edit kubernetes-dashboard service.</p>

<p>$ kubectl -n kube-system edit service kubernetes-dashboard
You should see yaml representation of the service. Change type: ClusterIP to type: NodePort and save file.</p>

<p>Can change clusterip to nodeport command line without editor?
Thanks!</p>

<p>you can change it like this</p>

<pre><code>kubectl patch svc kubernetes-dashboard --type='json' -p '[{"op":"replace","path":"/spec/type","value":"NodePort"}]'
</code></pre>
