Install Kubernetes dashboard on MicroK8s on vps or barametal servers without proxy

kubectl apply -f
kubectl create serviceaccount dashboard -n default
kubectl create clusterrolebinding dashboard-admin -n default  --clusterrole=cluster-admin  --serviceaccount=default:dashboard
kubectl get secret $(kubectl get serviceaccount dashboard -o jsonpath="{.secrets[0].name}") -o jsonpath="{.data.token}" | base64 --decode
kubectl -n kubernetes-dashboard  edit service kubernetes-dashboard

change the .spec.type to NodePort and add nodePort : 30100

Access the dashboard through : https://Server-IP:30100/#/login
Use firefox instead of chrome beacuse we need to ignore self signed certificate



Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.