name: Kubernetes Dashboard
Setting up the dashboard
Note
Heapster is now deprecated.
Steps to take
- Create service account and RBAC rules
- Deploy dashboard
- Deploy metrics Add-Ons
- Create cluster admin account and explore dashboard
We need to create:
- A service account for the dashboard
- Several roles to grant privileges (RBAC) to the dashboard
- A role binding to link the service account to the RBAC roles
Apply steps
- dashboard-account-rab.yaml
- deploy-dashboard.yaml
- deploy-influxdb.yaml
- deploy-heapster.yaml
- deploy-heapster-rbac.yaml
- dashboard-service-account.yaml
Viewing the dashboard
kubectl proxy --address='0.0.0.0' --port=8001 --accept-hosts='.*'
# http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/#!/login
Fetching the token
kubectl -n kube-system describe secret $(kubectl -n kube-system get secret | grep eks-admin | awk '{print $1}')