Skip to content
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 use the token to login the karmada #25

Open
KevinLiangX opened this issue Aug 16, 2022 · 7 comments
Open

Can't use the token to login the karmada #25

KevinLiangX opened this issue Aug 16, 2022 · 7 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@KevinLiangX
Copy link

follow the step to install the dashboard inthe karmada cluster ,

[root@lianghua karmada]# kubectl -n karmada-system get secret $(kubectl -n karmada-system get sa/karmada-dashboard -o jsonpath="{.secrets[0].name}") -o go-template="{{.data.token | base64decode}}"
eyJhbGciOiJSUzI1NiIsImtpZCI6IlVUMk95MjE2REtpWjIySWNlenZKemx4dno2T3JJMXBrWk5KLV9QRHhTSUUifQ.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJrYXJtYWRhLXN5c3RlbSIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VjcmV0Lm5hbWUiOiJrYXJtYWRhLWRhc2hib2FyZC10b2tlbi10MjdrdiIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50Lm5hbWUiOiJrYXJtYWRhLWRhc2hib2FyZCIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50LnVpZCI6IjhkYThiNmM1LTMyZjItNDBhOC1iNzgzLTYxMGY0OWJiYmU1YiIsInN1YiI6InN5c3RlbTpzZXJ2aWNlYWNjb3VudDprYXJtYWRhLXN5c3RlbTprYXJtYWRhLWRhc2hib2FyZCJ9.GhqAJ0xGdroX_7WX37BV4L8ya1IaBq8OGkWWf1-ubUWqRk0b_6UeVSxOLmckS627OfesEspsPPCNftywCYkeWdSME0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oYzJoaWIyRnlaQ0o5LkdocUFKMHhHZHJvWF83V1gzN0JWNEw4eWExSWFCcThPR2tXV2YxLXViVVdxUmswYl82VWVWU3hPTG1ja1M2MjdPZmVzRXNwc1BQQ05mdHl3Q1lrZVdkU01FMEF5X2Q4VFEzVzd0S3Y2QWZhNU81OTVVR2tCeWhlY0RlaWxLUTRkX0JqQjJtOTltTUYzTWVDcXJtUEhCNnRNVi02U3A2VDNCVXhPNzlodWRtSEV5WWsxTzUyQS1QVTBPWnU3bGppTWpvTmhfaFZSV2g1dXItYnEyY2F1MWkwSnB6LVJxaExPdDExRDBVeE5RdHJibHl2Q212aER5VG5va1hkcm03ejZMSGpjOWx2Sk4xZlFYTWxMZlk1b1ltbjJDaEttWThEWXRQRG9xUEdncHFQbC1kRVc2bmtRcnJKSWNnQmNYdzhKd1RVcWZ0dEE2UzN3cWRCUlFhUUZsQQ==

it's failed
image

to check the log
image

the resource inthe cluster ,and kubectl is normal
image

is there any idears ?

@ada2468
Copy link

ada2468 commented Sep 1, 2022

Don't decode it.

see this part of code

go-template="{{.data.token | base64decode}}"

The output is already decoded. Just copy and paste that to your token input box.

@XMingG99
Copy link

I had tried to create a secret and get token by secret. But it didn't work!
By the way, I tried to create a token by kubectl, which didn't work too.
what's wrong with it ?
My Env is : k8s v1.25; karmada v1.3.2
image

@Erick-shi
Copy link

@XMingG99 did you solve it ? I have the same problem.

@XMingG99
Copy link

XMingG99 commented Aug 8, 2024

@XMingG99 did you solve it ? I have the same problem.

I solved it, but dashboard is not work now
https://gitee.com/XMingG/multi-cluster-manager/tree/master/experiment/Deploy%20Dashboard%20in%20karmada

@Erick-shi
Copy link

@XMingG99 did you solve it ? I have the same problem.

I solved it, but dashboard is not work now https://gitee.com/XMingG/multi-cluster-manager/tree/master/experiment/Deploy%20Dashboard%20in%20karmada

you kan login? but the dashboard don't work?

@XMingG99
Copy link

XMingG99 commented Aug 8, 2024

you kan login? but the dashboard don't work?

Yes, because the dashboard project is no longer maintained.

@Erick-shi
Copy link

you kan login? but the dashboard don't work?

Yes, because the dashboard project is no longer maintained.

I have solve it ,but I found the UI have't useful a littel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

4 participants