DevOps Buzz
Search…
Bash / Shell
Bitbucket
Distros
Elasticsearch
General
Guidelines / Standards
microk8s
Prometheus
RabbitMQ
VirtualBox
Dashboard

Access dashboard

Allow full access.
1
kubectl create clusterrolebinding kubernetes-dashboard \
2
--clusterrole=cluster-admin \
3
--serviceaccount=kube-system:kubernetes-dashboard
Copied!
Forward port.
1
kubectl port-forward \
2
$(kubectl -n kube-system get pods | grep kubernetes-dashboard | awk '{print $1; exit}') \
3
9090:9090 -n kube-system
Copied!
Then access: http://127.0.0.1:9090
Alternatively you can run:
1
az aks browse --resource-group myResourceGroup --name myAKSCluster
Copied!

References

Remove/uninstall dashboard

Required az cli version >=2.0.68
1
az account set --subscription "YOUR-SUBSCRIPTION"
2
az aks disable-addons -a kube-dashboard --resource-group YOUR-RG --name YOUR-CLUSTER
Copied!