Score:1

Cannot login to Kubernetes dashboard with userid - 404 error

in flag

I'm trying to setup a kubernetes dashboard in a test environment on AWS. I am able use the token from one of the default service accounts to login to the dashboard only to get all kinds of errors.

default dashboard with errors

This is after I gave the account cluster admin role

rbac code snippet

Because the kubernetes dashboard and the cluster in different namespaces (kubernetes-dashboard vs kube-system), I thought that was the issue. However, same messages when change namespaces:

kubernetes dashboard namespace

Same with the Kube-system namespace:

kube-system namespace

I then decided to create a new account called admin-user and gave it the cluster-admin role

rbac for admin-user

I try to login after getting the secret for this account, and I get 404 error:

404 error

I believe that is related to using kubectl proxy to connect to the cluster. Any suggestions on how to move forward?

Vit avatar
cn flag
Vit
check [this answer](https://stackoverflow.com/a/49992698/9929015) works like a charm..
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.