New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't sign in into dashboard #2735
Comments
Duplicate of #2524 and possibly some others. https://github.com/kubernetes/dashboard/wiki/Accessing-Dashboard---1.7.X-and-above
|
cool,thanks :) |
Cool. I 'm the same issue. So that being said, how do I access the dashboard if not by kubectl proxy? I 'm using AWS instances, so can't have a web interface on localhost. On the dashboard URL, returned from cluster-info, I 'm not getting any login page, just unauthorized in json. |
Seconding ashish235's comment. |
@ashish235 same issue |
I had the same issue as @ashish235. How I solved it: Run
You should now be able to access the dashboard using your browser at http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/#!/login |
@apoms - the above solution works like a charm... I used the same approach for accessing the dashboard built for my EKS cluster... I had installed kubectl, config , dashboard on a AWS server so that my team can ssh into it via jump box. After port forwarding it, can open it via local machine on a browser. |
Let me have a summary: if you deploy use http alternative method, you can only access your dashboard by <nodeip>:<port>, remeber to add it to yaml first!! The offical wiki is a little bit confused so I reordered it here. |
Thank you very much. They help. |
That is not correct. Alternative method is there if user wants to use his own reverse proxy and external IdP to configure access to the cluster. |
Thank you so much apoms |
So, it is not possible to use k8s dashboard and multipass without such hacks or extra configuration. So, Kubernetic can be an alternative, you just need to configure local kubectl:
(to install kubectl on macOS: |
You need just 2 commands: $ kubectl port-forward svc/kubernetes-dashboard -n kube-system 6443:443 ssh -i EC2KeyPair.pem ec2-user@IP -L 6443:127.0.0.1:6443 |
Steps to reproduce
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml
kubectl -n kube-system get secret
kubectl -n kube-system describe secret kubernetes-dashboard-token-lx6wf
kubectl proxy --address='0.0.0.0' --port=8001 --accept-hosts='^*$'
(only for test)http://myip:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/#!/login
Observed result
When i press "Sign in" nothing happens.
Browser console:
The text was updated successfully, but these errors were encountered: