Skip to content

Kubernetes dashboard

Official documentation

Installation

kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.7.0/aio/deploy/recommended.yaml

Service Account for access

Official documentation

Create ServiceAccount, ClusterRoleBinding and Secret objects:

kubectl apply -f dashboard/

Retrieve the Secret token for amdin-user in kubernetes-dashboard namespace

echo $(kubectl -n kubernetes-dashboard get secret admin-user -o jsonpath={".data.token"} | base64 -d)

Proxy

Run the following to proxy dashboard on to your machine:

kubectl proxy

Then open http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/ and enter the token from the step below to access the dashboard.