kubernetes dashboard is not accessible from outside

9/4/2018

I have installed and configure Kubernates in my Ubuntu virtual machine

Reference: Document Link

Started kubernetes proxy using below command

kubectl proxy --address='0.0.0.0'

I'm able to access my dashboard using http://localhost:8001 link on localhost when I'm trying to access the dashboard from outside using http://192.168.33.30:8001/ link getting following Error

<h3>Unauthorized</h3>

Can anyone help me on this?

-- Ashwani
kubernetes
kubernetes-dashboard

1 Answer

9/10/2018

It works using below command:

kubectl proxy --address='0.0.0.0' --accept-hosts='^.*
#x27;
--port=8001

After this, I am able to access the Kubernetes dashboard outside using VM IP address

-- Ashwani
Source: StackOverflow