MicroK8s : Enable Dashboard2026/05/19 |
|
To enable Dashboard on MicroK8s Cluster, Configure like follows. |
|
| [1] | Enable Dashboard add-on on primary Node. |
|
root@dlp:~# microk8s enable dashboard
Infer repository core for addon dashboard
Enabling metrics-server
Infer repository core for addon metrics-server
Addon core/metrics-server is already enabled
Infer repository core for addon helm3
Addon core/helm3 is already enabled
Enabling Kubernetes dashboard
Release "kubernetes-dashboard" does not exist. Installing it now.
NAME: kubernetes-dashboard
LAST DEPLOYED: Tue May 19 05:15:33 2026
NAMESPACE: kubernetes-dashboard
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
*************************************************************************************************
*** PLEASE BE PATIENT: Kubernetes Dashboard may need a few minutes to get up and become ready ***
*************************************************************************************************
Congratulations! You have just installed Kubernetes Dashboard in your cluster.
To access Dashboard run:
kubectl -n kubernetes-dashboard port-forward svc/kubernetes-dashboard-kong-proxy 8443:443
NOTE: In case port-forward command does not work, make sure that kong service name is correct.
Check the services in Kubernetes Dashboard namespace using:
kubectl -n kubernetes-dashboard get svc
Dashboard will be available at:
https://localhost:8443
Applying manifest
secret/microk8s-dashboard-token created
If RBAC is not enabled access the dashboard using the token retrieved with:
microk8s kubectl describe secret -n kube-system microk8s-dashboard-token
Use this token in the https login UI of the kubernetes-dashboard service.
In an RBAC enabled setup (microk8s enable RBAC) you need to create a user with restricted
permissions as shown in:
https://github.com/kubernetes/dashboard/blob/master/docs/user/access-control/creating-sample-user.md
root@dlp:~# microk8s kubectl get pods -n kubernetes-dashboard NAME READY STATUS RESTARTS AGE kubernetes-dashboard-api-6677cc4df8-9l7t7 1/1 Running 0 100s kubernetes-dashboard-auth-789bbc9f84-tdln2 1/1 Running 0 100s kubernetes-dashboard-kong-6465d78779-5q45l 1/1 Running 0 100s kubernetes-dashboard-metrics-scraper-85448cbcc4-4j62k 1/1 Running 0 100s kubernetes-dashboard-web-7958b4cc8f-7t5z4 1/1 Running 0 100s # confirm security token root@dlp:~# microk8s kubectl describe secret -n kube-system microk8s-dashboard-token | grep ^token token: eyJhbGciOiJSUzI1NiIsImtp..... # set port-forwarding to enable external access if you need root@dlp:~# microk8s kubectl port-forward -n kubernetes-dashboard service/kubernetes-dashboard-kong-proxy --address 0.0.0.0 10443:443 Forwarding from 0.0.0.0:10443 -> 8443 |
| [2] | Access to [https://(MicroK8s primary node's Hostname or IP address):10443/] with an web browser on any Client computer in local network. Copy and paste the security token you confirmed on [1] to [Enter token] section and Click [Sing In] button. |
|
| [3] | After authentication successfully passed, MicroK8s Cluster Dashboard is displayed. |
|
|
| Sponsored Link |
|
|