Dashboard
Enabling the web UI
Dashboard is the Kubernetes web UI which provides visual insights into the cluster's operations. It's not deployed by default, but is available as an optional component for later installation.
Installation
To make the dashboard accessible at http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/:
curl -L -o dashboard-recommended.yaml https://raw.githubusercontent.com/kubernetes/dashboard/v2.7.0/aio/deploy/recommended.yaml
kubectl apply -f dashboard-recommended.yaml
kubectl create serviceaccount -n kube-system dashboard-admin
kubectl create clusterrolebinding -n kube-system dashboard-admin --clusterrole=cluster-admin --serviceaccount=kube-system:dashboard-admin
Access the dashboard
Proxy the API server:
kubectl proxy
Generate a token:
kubectl create -n kube-system token dashboard-admin
Backlinks