Can not run kubernetes dashboard on Master node

7/14/2019

I installed kubernetes cluster (include one master and two nodes), and status of nodes are ready on master. When I deploy the dashboard and run it by acccessing the link http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/, I get error

'dial tcp 10.32.0.2:8443: connect: connection refused' Trying to reach: 'https://10.32.0.2:8443/'

The pod state of dashboard is ready, and I tried to ping to 10.32.0.2 (dashboard's ip) not succesfully

I run dashboard as the Web UI (Dashboard) guide suggests.

How can I fix this ?

-- taibc
docker
kubernetes

2 Answers

7/14/2019

Start proxy, if it's not started

kubectl proxy --address='0.0.0.0' --port=8001 --accept-hosts='.*'
-- Prakash Krishna
Source: StackOverflow

7/17/2019

There are few options here:

  1. Most of the time if there is some kind of connection refused, timeout or similar error it is most likely a configuration problem. If you can't get the Dashboard running then you should try to deploy another application and try to access it. If you fail then it is not a Dashboard issue.

  2. Check if you are using root/sudo.

  3. Have you properly installed flannel or any other network for containers?

  4. Have you checked your API logs? If not, please do so.

  5. Check the description of the dashboard pod (kubectl describe) if there is anything suspicious.

  6. Analogically check the description of service.

  7. What is your cluster version? Check if any updates are required.

Please let me know if any of the above helped.

-- OhHiMark
Source: StackOverflow