
Overview
Steps to enable Web UI for Kubernetes
Apply Yaml File Url
kubectl apply {dashboard_yaml_url}
Go to the site https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/ and get the URL to apply :

$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0/aio/deploy/recommended.yaml namespace/kubernetes-dashboard created serviceaccount/kubernetes-dashboard created service/kubernetes-dashboard created secret/kubernetes-dashboard-certs created secret/kubernetes-dashboard-csrf created secret/kubernetes-dashboard-key-holder created configmap/kubernetes-dashboard-settings created role.rbac.authorization.k8s.io/kubernetes-dashboard created clusterrole.rbac.authorization.k8s.io/kubernetes-dashboard created rolebinding.rbac.authorization.k8s.io/kubernetes-dashboard created clusterrolebinding.rbac.authorization.k8s.io/kubernetes-dashboard created deployment.apps/kubernetes-dashboard created service/dashboard-metrics-scraper created deployment.apps/dashboard-metrics-scraper created
Get token to Login locally
kubectl describe secret -n kube-system
Above command will return a whole lot of tokens. Get the service-account-token
from it.
Create Proxy
Now enter the proxy command to start the dashboard
kubectl proxy
Get the url and add token to it
You can get the complete dashboard URL from docker site

Open the URL and enter the service-account-token
you got earlier with describe command and Sign In

And you’re logged in:

Resources
https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/