I’ve set up a cluster using the Multipass system. Specifically, I’ve created three virtual machines (VMs), and on each of them, I’ve installed MicroK8s. Then, I configured a cluster where two of the three nodes serve as worker nodes, and the remaining one acts as the control node.
Now, I’m attempting to use the Kubernetes dashboard on the control node to monitor some metrics. However, I’m encountering issues with port forwarding.
Here are the steps I’ve followed:
- I obtained the IP address and port of the dashboard addon.
- I attempted to forward the port using the command: microk8s kubectl port-forward -n kube-system svc/kubernetes-dashboard 8443:443.
- The output indicated successful port forwarding: Forwarding from 127.0.0.1:8443 -> 8443 and Forwarding from [::1]:8443 -> 8443.
- I tried accessing the dashboard using the IP address of the control node and the new port in Firefox.
However, I encountered an issue. Upon checking the logs, I found the following error message: ‘Metric client health check failed: Get “https://10.152.183.1:443/api/v1/namespaces/kube-system/services/dashboard-metrics-scraper/proxy/healthz”: dial tcp 10.152.183.1:443: connect: connection refused. Retrying in 30 seconds.’
While I was expecting to enter in the dashboard browser of the controller node, but anything happen.
Unfortunately, I’m unsure how to resolve this problem. Can anyone offer assistance, please?