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

generate bearer token failed #38

Open
zxyyy0119 opened this issue Oct 19, 2023 · 6 comments
Open

generate bearer token failed #38

zxyyy0119 opened this issue Oct 19, 2023 · 6 comments
Labels
kind/question Indicates an issue that is a support question.

Comments

@zxyyy0119
Copy link

zxyyy0119 commented Oct 19, 2023

I installed Karmada by Karmada command-line tool on my own cluster (karmadactl init) and joined cluster with name member 2 to Karmada.
image

Then I tried to install Karmada Dashboard by following the steps on github and I found out that I only had karmada-apiserver.config file (seems like I am missing something about karmada-host). Also, when I generated bearer token, it showed this error.
image

@zxyyy0119 zxyyy0119 added the kind/question Indicates an issue that is a support question. label Oct 19, 2023
@RainbowMango
Copy link
Member

The Karmada dashboard project is still far from being available, and the development of this project has actually stagnated due to the lack of front-end developers. We are also seeking developers who are willing to contribute to this project.

@haiker2011
Copy link

same problems

@warjiang
Copy link
Contributor

I installed Karmada by Karmada command-line tool on my own cluster (karmadactl init) and joined cluster with name member 2 to Karmada. image

Then I tried to install Karmada Dashboard by following the steps on github and I found out that I only had karmada-apiserver.config file (seems like I am missing something about karmada-host). Also, when I generated bearer token, it showed this error. image

TLDR:
if you want temporary token, may be expired hours ago, you get it by executing follow shell script:

export KUBECONFIG=path/to/karmada-kubeconfig
kubectl -n karmada-system create token karmada-dashboard

if you want a long lived token, you can following next steps

kubectl apply -f - <<EOF
apiVersion: v1
kind: Secret
metadata:
  name: karmada-dashboard-secret
  namespace: karmada-system
  annotations:
    kubernetes.io/service-account.name: karmada-dashboard
type: kubernetes.io/service-account-token
EOF

kubectl -n karmada-system get secret/karmada-dashboard-secret -ojsonpath='{.data.token}' | base64 -d && echo

It's not the problem of karmada. It's KEP-1205 which introduce the feature that caused not automatic generated token for serviceaccount.
More information you can follow this link: https://karmada.io/docs/troubleshooting/trouble-shooting/#serviceaccount-deployed-to-the-karmada-control-plane-dont-generate-token
image

@warjiang
Copy link
Contributor

The Karmada dashboard project is still far from being available, and the development of this project has actually stagnated due to the lack of front-end developers. We are also seeking developers who are willing to contribute to this project.

If there is any plan to maintain karma-dashboard, may be i can do it part time 🤣

@RainbowMango
Copy link
Member

If there is any plan to maintain karma-dashboard, may be i can do it part time

Glad to hear that and thank you!
Can we talk about it at tomorrow's community meeting? Or just contact me by email.

@warjiang
Copy link
Contributor

If there is any plan to maintain karma-dashboard, may be i can do it part time

Glad to hear that and thank you! Can we talk about it at tomorrow's community meeting? Or just contact me by email.

I'll attend the meeting on time 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Indicates an issue that is a support question.
Projects
None yet
Development

No branches or pull requests

4 participants