Access kubernetes web ui from remote computer

5/17/2019

I installed Web UI for kubernetes on master node. I am using Ubuntu Server 18.04.2. Following this tutorial and it states that you must access dashboard from localhost. I need to access it from remote PC.

UPDATE: I executed a dashboard with following command:

kubectl proxy --accept-hosts='.*' --address='100.180.3.11'

100.180.3.11 is external machine IP. I am able to get to sign in page. When I provide a token, nothing happens. Hint: seems like a cookie is not written and not being redirected.

-- eddyuk
kubernetes

3 Answers

5/17/2019

Not sure if I understood you correctly.

Once you have deployed the dashboard as mentioned in the article for example, connect to your cluster from your machine or remote station (the command to connect depends on your cloud provider).

Once you are connected to the cluster, try to execute "kubectl proxy" (do not stop the running kubectl proxy command), then try to surf to the url.

-- Shanica
Source: StackOverflow

5/28/2019

Assuming you your cluster is on VM's in bridged mode or that you can just access the node's IP from remote machine in the same network you can just change the type of service to NodePort and then access the dashboard on your node IP and access it on https://NODEIP:PORT.

Probably the reason that nothing happens after you add the token is the fact that you are using kubectl proxy which only allows HTTP connections. You won't be able to access it from any other place than localhost address. More information here.

-- aurelius
Source: StackOverflow

5/17/2019

Set dashboard service type to nodeport. You should be able to access the dashboard from other computers

-- P Ekambaram
Source: StackOverflow