dashboard icon indicating copy to clipboard operation
dashboard copied to clipboard

Can't use the token to login the karmada

Open KevinLiangX opened this issue 3 years ago • 7 comments

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_6UeVSxOLmckS627OfesEspsPPCNftywCYkeWdSME0Ay_d8TQ3W7tKv6Afa5O595UGkByhecDeilKQ4d_BjB2m99mMF3MeCqrmPHB6tMV-6Sp6T3BUxO79hudmHEyYk1O52A-PU0OZu7ljiMjoNh_hVRWh5ur-bq2cau1i0Jpz-RqhLOt11D0UxNQtrblyvCmvhDyTnokXdrm7z6LHjc9lvJN1fQXMlLfY5oYmn2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TRkX0JqQjJtOTltTUYzTWVDcXJtUEhCNnRNVi02U3A2VDNCVXhPNzlodWRtSEV5WWsxTzUyQS1QVTBPWnU3bGppTWpvTmhfaFZSV2g1dXItYnEyY2F1MWkwSnB6LVJxaExPdDExRDBVeE5RdHJibHl2Q212aER5VG5va1hkcm03ejZMSGpjOWx2Sk4xZlFYTWxMZlk1b1ltbjJDaEttWThEWXRQRG9xUEdncHFQbC1kRVc2bmtRcnJKSWNnQmNYdzhKd1RVcWZ0dEE2UzN3cWRCUlFhUUZsQQ==

it's failed image

to check the log image

the resource inthe cluster ,and kubectl is normal image

is there any idears ?

KevinLiangX avatar Aug 16 '22 07:08 KevinLiangX

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.

ada2468 avatar Sep 01 '22 02:09 ada2468

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

XMingG99 avatar Dec 14 '22 17:12 XMingG99

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

Erick-shi avatar Aug 08 '24 02:08 Erick-shi

@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

XMingG99 avatar Aug 08 '24 03:08 XMingG99

@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?

Erick-shi avatar Aug 08 '24 06:08 Erick-shi

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

Yes, because the dashboard project is no longer maintained.

XMingG99 avatar Aug 08 '24 09:08 XMingG99

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.

Erick-shi avatar Aug 12 '24 09:08 Erick-shi

/close We are currently refactoring the dashboard, please look at the document on the readme file.

RainbowMango avatar Sep 30 '24 03:09 RainbowMango

@RainbowMango: Closing this issue.

In response to this:

/close We are currently refactoring the dashboard, please look at the document on the readme file.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

karmada-bot avatar Sep 30 '24 03:09 karmada-bot