Deploy kubernetes-dashboard on Rancher 2.0 cluster exposed using NodePort
Step 1: Generate kubeconfig from the UI
Generate the kubeconfig file for your cluster using the
Kubeconfig File button in the Cluster view of your cluster.
Save the generated file as
$HOME/.kube/config and run
kubectl get nodes to verify it works.