Dashboard Access
Kubernetes Dashboard UI Access
Section titled “Kubernetes Dashboard UI Access”The Kubernetes Dashboard is a web-based UI for managing and monitoring your cluster.
Run a local proxy
Section titled “Run a local proxy”kubectl --kubeconfig /path/to/kube.conf proxyThis starts a local server at http://localhost:8001.
Open the Dashboard
Section titled “Open the Dashboard”http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/Create a login token
Section titled “Create a login token”Since Kubernetes v1.24, tokens are not auto-generated. Create one:
apiVersion: v1kind: Secrettype: kubernetes.io/service-account-tokenmetadata: name: kubernetes-dashboard-token namespace: kubernetes-dashboard annotations: kubernetes.io/service-account.name: kubernetes-dashboard-admin-userApply it:
kubectl --kubeconfig /path/to/kube.conf apply -f token.yamlRetrieve the token
Section titled “Retrieve the token”kubectl --kubeconfig /path/to/kube.conf describe secret \ $(kubectl --kubeconfig /path/to/kube.conf get secrets -n kubernetes-dashboard \ | grep kubernetes-dashboard-token | awk '{print $1}') \ -n kubernetes-dashboardFor more details, see the official Kubernetes Dashboard documentation.
See also: Create Cluster, kubectl Access