Score:0

How do you access the Kubernetes dashboard?

it flag

Following the docs here:

https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/

I've run kubectl proxy but as per the docs: "The UI can only be accessed from the machine where the command is executed."

Kubernetes is running on several servers on my network, and I would like to access the dashboard from my workstation.

First off: I'm confused as to what use case these docs cover? Are they expecting someone to have a KVM on their physical server and install xorg and a browser?

I can think of several other methods I could use here:

  • Tunneling http traffic over ssh is certainly possible.

  • VNC.

  • X11 forwarding using SSH.

But each of these four methods is clearly a wrong / hacky approach.

How do you configure Kubernetes to allow traffic from say, a single IP address, to the dashboard?

moonkotte avatar
in flag
Why not to use [recommended approach](https://github.com/kubernetes/dashboard#access)? Practically speaking what is already presented in the answer.
Score:2
jp flag

Run kubectl proxy on your workstation, not on the server, open http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/. in your local browser.

it flag
Interesting...so my workstation must be capable of running `kubectl`?
jp flag
see https://kubernetes.io/docs/tasks/tools/
moonkotte avatar
in flag
@catpants Please consider [accepting the answer](https://serverfault.com/help/someone-answers) if it solves your issue.
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.