Skip to content
Live $300 credit for new accounts Valid for 60 days from account creation Get started →

Dashboard Access

The Kubernetes Dashboard is a web-based UI for managing and monitoring your cluster.

kubectl --kubeconfig /path/to/kube.conf proxy

This starts a local server at http://localhost:8001.

http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/

Since Kubernetes v1.24, tokens are not auto-generated. Create one:

apiVersion: v1
kind: Secret
type: kubernetes.io/service-account-token
metadata:
name: kubernetes-dashboard-token
namespace: kubernetes-dashboard
annotations:
kubernetes.io/service-account.name: kubernetes-dashboard-admin-user

Apply it:

kubectl --kubeconfig /path/to/kube.conf apply -f token.yaml
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-dashboard

For more details, see the official Kubernetes Dashboard documentation.

See also: Create Cluster, kubectl Access