Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Latest commit

 

History

History
31 lines (19 loc) · 645 Bytes

README.md

File metadata and controls

31 lines (19 loc) · 645 Bytes

Enable K8s dashboard

https://microk8s.io/docs/addon-dashboard

Enable Dashboard and Shared Nginx Ingress

microk8s enable dashboard ingress

Port-Forward

Export the kube-dashboard in VM

sudo microk8s kubectl port-forward -n kube-system service/kubernetes-dashboard --address 0.0.0.0 443:443

Login Token

Get login token

token=$(microk8s kubectl -n kube-system get secret | grep default-token | cut -d " " -f1)
kubectl -n kube-system describe secret $token

Open browser e.g. https://<vm ip>.nip.io/

Note: type thisisunsafe to bypass the self-signed certificate or import it into chrome browser