kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v1.10.1/src/deploy/recommended/kubernetes-dashboard.yaml
Confirm a kubernetes-dashboard
service account token was created
sudo kubectl -n kube-system get secret
Now we need to give the kubernetes-dashboard service account access
kubectl create clusterrolebinding kubernetes-dashboard -n kube-system --clusterrole=cluster-admin --serviceaccount=kube-system:kubernetes-dashboard
kubectl describe secret dashboard-token-bsqvp -n kube-system
Copy the token
to use for login later
kubectl -n kube-system edit service kubernetes-dashboard
Now change type: ClusterIP
to type: NodePort
sessionAffinity: None
type: NodePort
status:
kubectl get svc -n kube-system kubernetes-dashboard
Access Dashboard https::
You can now load the Dashboard from outside the cluster, but you will be prompted for a token when trying to login.