Score:0

Not able to access kubernetes dashboard

tr flag

After a successful setup of a high available Kubernetes Cluster using kubeadm, I'm not able to access the kubernetes dashboard web ui.

First of all, let me explain the current cluster topology: within my local network, there are three different bare metal servers running, where each of them hosts a master and worker node. One of those machines runs a nginx load balancer as well.

After the setup, I copied the cluster config file to my local working machine (MacBook Pro) and ran kubectl cluster-info, everything seams working fine:

Kubernetes control plane is running at https://load-balancer:6443
CoreDNS is running at https://load-balancer:6443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy

At the end, the Kubernetes Dashboard deployment was made according to the official docs, but I'm not able to access the dashboard ui through my working machine (it's connected to the same network obviously) and I can't figure out why.

Always getting the error when requesting http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/ that says:

{
  "kind": "Status",
  "apiVersion": "v1",
  "metadata": {
    
  },
  "status": "Failure",
  "message": "error trying to reach service: dial tcp 10.40.0.1:8443: connect: no route to host",
  "reason": "ServiceUnavailable",
  "code": 503
}

What's even stranger, a few minutes ago the ui worked but I couldn't sign in using the token and now it's gone again.

Any suggestions what the problem could be?

Vit avatar
cn flag
Vit
can you please clarify if you use `kubectl proxy` prior to connecting to localhost?
Vit avatar
cn flag
Vit
https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/#command-line-proxy
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.