when access Kubernetes dashboard page get error connect: no route to host

5/30/2020

I have installed kubernetes cluster following https://blog.alexellis.io/kubernetes-in-10-minutes/. I am blocked at the last step, which is to access Kubernetes dashboard GUI.

if I access from a browser: http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/#!/login/

or if I run below command in the master: curl http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/#!/login/

I always get error message "Error trying to reach service: 'dial tcp 192.168.0.5:8443: connect: no route to host'"

I double maybe the security group I set between master and worker is not enough for them to communicate with each other? but I already set the security group of both the master and worker EC2 as allow 8443 from any IP.

if I access http://localhost:8001/api/v1/namespaces/kubernetes-systems/services/https:kubernetes-dashboard:/proxy/ (i.e. replace Kubernetes-dashboard to Kubernetes-systems) I can see some text with json format.

Does anybody know why I cannot access the Kubernetes dashboard GUI? Thanks,

-- user389955
aws-security-group
kubernetes
kubernetes-dashboard

0 Answers