dashboard: kubernetes dashboard does not login throws object object error
Hi,
I have deployed RBAC enabled dashboard. With my RBAC enabled user configs, I am able to run all type of kubectl commands and it works fine. But when I try to login to dashboard with token generated through ServiceAccount it throws “object object error”. This service account has access to kube-system namespaces.
Dashboard version: k8s.gcr.io/kubernetes-dashboard-amd64:v1.8.1
Kubernetes version: 1.8.4
Operating system: centos
Is there anyway to find what is throwing this error in the kubernetes log?
How to Re-produce it? -> Open Dashboard as “kubectl proxy” -> URL : http://127.0.0.1:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/#!/login -> Login with Service Account Token “” -> Throws below error
Find attached the screen shot

About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 1
- Comments: 18 (7 by maintainers)
I was able to get around this with the following role for users:
Specifically, the
createpermissions onservices/proxyforhttps:kubernetes-dashboard:was missing.@bixiyan Your case is different and it is described already in our documentation why this is not working. It was explained multiple times already. Read NOTE part of
kubectl proxypart: https://github.com/kubernetes/dashboard/wiki/Accessing-Dashboard---1.7.X-and-above#kubectl-proxy.I faced with the same problem i cant POST to
127.0.0.1:8001/.../loginwith my serviceaccount. When I rankubectl proxywith admin default .kube/config i was able to do login with serviceaccount tokenPOST http://127.0.0.1:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/api/v1/login 403 (Forbidden)my service account role:
what should I add there? I find out, it works with
But what shoud it be able to create, which kind of resources ? Can I limit it by name and resource?