can't access kubernetes Dashboard can't access kubernetes Dashboard kubernetes kubernetes

can't access kubernetes Dashboard


192.168.0.0/16 is a private IP range, meaning you need to be within the cluster's network to access it.

The easiest way to access your service outside the cluster is to run kubectl proxy, which will proxy requests to your localhost port 8001 to the Kubernetes API server. From there, the apiserver can proxy to your service:

http://localhost:8001/api/v1/proxy/namespaces/kube-system/services/kubernetes-dashboard


I know that this is old question, but we spent several hours when looked for solution. It was so silly...Posting it here for next comers...

When you are starting proxy, and browsing to 127.0.0.1:8080/ui/, you are redirected to the following url:

http://127.0.0.1:8001/api/v1/namespaces/kube-system/services/kubernetes-dashboard/proxy

This url in our case is opened as white empty screen.The issue is that this url is missing slash at the end. When added, everething is working as a charm... :(

http://127.0.0.1:8001/api/v1/namespaces/kube-system/services/kubernetes-dashboard/proxy/


Use:

kubectl proxy

Which will let you access the dashboard at:

localhost:8001