- Install the dashboard
- Run:
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.2.0/aio/deploy/recommended.yaml
- Run:
- Create admin-user
- Create a file named: dashboard-adminuser.yaml
- Add this content:
apiVersion: v1
kind: ServiceAccount
metadata:
name: admin-user
namespace: kubernetes-dashboard
- Run:
kubectl apply -f dashboard-adminuser.yaml
- Get the token
- Run:
kubectl -n kubernetes-dashboard get secret $(kubectl -n kubernetes-dashboard get sa/admin-user -o jsonpath="{.secrets[0].name}") -o go-template="{{.data.token | base64decode}}"
- Copy the token
- Run:
- Start the dashboard
- Run:
kubectl proxy
- Run:
- Open the dashboard