Hello guys i am having some trouble with loging into dashboard with token. I was googling for 3 days and there are explained the same issues on the internet as mine but with the given answers I couldn't solve my problem.
The problem is: I have installed kubernetes dashboard on my virtual machine. From local browser (from virtual machine) I can easy access to the dashboard with a TOKEN. I can sign in complitely fine, BUT when i want to access to the same dashboard via my computer (not the virtual machine) and i paste TOKEN to where it is required and click Sign IN nothing happens. Can someone please help me how to remotely access to my dashboaard and to solve this issue?
NOTE: Accessing to dashboard (from Virtual Machine (local) and remote from my computer) is working complitely fine but when I want to log in with a token just nothing happens. I don't know why.
I also tried some port forwarding like: ssh -L 8001:localhost:8001 root@<IP> , but did not fix my error.
Accessing localy to dashboard: http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/#!/login
Accesing remotely to dashboard (as above, but with the IP of virtual machine): <IP>:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/#!/login
Thanks a lot.
Not really. I guess that access to dashboard just isn't possible this way.
As someone mentioned below: It cannot be accessed from anywhere other than the master.
try this @Denis,
kubectl proxy --address=master-node-ip --port 8001 --accept-hosts '.*'
How are you getting the token?
Try using this token:
kubectl -n kube-system get secret |grep kubernetes-dashboard-token |cut -f1 -d ' ' | xargs kubectl -n kube-system describe secret
Sarah & Vardhan I also came to the conclusion that accessing to dashboard from anywhere other than the master won't work.
So my solution is: create 1 master (maximal linux install) and 2 nodes (minimal linux install) on the same vCenter and then accessing to my dashboard from my master, where I have installed maximal version with GUI. This is the only way to fix the problem I guess.
Greetings from edureka! Community.
We have reviewed your post and have concluded there is no reason for your post to be flagged. Hence, we have cleared the flag.
Continue to Ask, Learn & Collaborate!
Dashboard should not be exposed publicly using kubectl proxy command as it only allows HTTP connection. For domains other than localhost and 127.0.0.1 it will not be possible to sign in. Nothing will happen after clicking Sign in button on login page.
This article will help you.
You have to ...READ MORE
I had the same issue, struggled for days. ...READ MORE
You’ve created your ServiceAccount on a different ...READ MORE
The installation fails because there is no ...READ MORE
You’re trying to access a private IP. ...READ MORE
To access Kubernetes dashboard, you need to ...READ MORE
Hey @nmentityvibes, you seem to be using ...READ MORE
Follow these steps:
$ kubeadm reset
$ kubeadm init ...READ MORE
Try using ingress itself in this manner
except ...READ MORE
Hi Kalgi after following above steps it ...READ MORE
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.