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

Stuck on generating kubeconfig #112

Closed
myevit opened this issue Aug 15, 2022 · 9 comments · Fixed by #109
Closed

Stuck on generating kubeconfig #112

myevit opened this issue Aug 15, 2022 · 9 comments · Fixed by #109
Labels
bug Something isn't working
Milestone

Comments

@myevit
Copy link

myevit commented Aug 15, 2022

Stuck on generating kubeconfig
image

@Scofields
Copy link

me too!

@ettoreciarcia
Copy link
Member

I ran into the same problem

@loeken
Copy link

loeken commented Oct 3, 2022

I noticed the same behaviour starting with k3s version 1.24. it still works in 1.23 for me, 1.25 also seems affected
@myevit @Scofields @ettoreciarcia what version of kubernetes did you try installing it in?

@loeken
Copy link

loeken commented Oct 3, 2022

when i create the user ( but not click on display kubeconfig ), it seems to create a permissionmanager user but no service accounts

❯ k get permissionmanagerusers
NAME                            AGE
permissionmanager.user.loeken   33s
❯ k get serviceaccounts --all-namespaces|grep loeken

after i click on view kubeconfig i get this error in the logs:

2022/10/03 10:13:43 timed out waiting for the condition

then the pod seems to crash and restart if i then click on view kubeconfig again i see this error in the logs

2022/10/03 10:17:46 Service Account not created: serviceaccounts "loeken" already exists

which i can confirm has been created:

❯ k get serviceaccounts --all-namespaces|grep loeken
permission-manager   loeken  

@dyipon
Copy link

dyipon commented Oct 6, 2022

same here with 1.25

@loeken
Copy link

loeken commented Oct 22, 2022

Project dead?

@gajdosr
Copy link

gajdosr commented Nov 7, 2022

Same here, figured out that from1.24 the ServiceAccountToken is not generating automatically.

Workaround:
--feature-gates=LegacyServiceAccountTokenNoAutoGeneration=false

Howto:
https://faun.pub/feature-gates-how-to-enable-kubernetes-alpha-features-fdb38dc3a9aa

@thegalah
Copy link

@gajdosr this worked for me

@luigibarbato
Copy link
Contributor

Hello guys! 🙋🏽‍♂️
First of all, thank you for all your contributions and especially for waiting. 😊

The problem you encountered is related to the changes that have occurred on the ServiceAccount since version v1.24: When a ServiceAccount is created, no more Secret is created automatically, which the Permission Manager used to say was a sure thing. Anyway, the problem will be fixed at the merge of the #109

@luigibarbato luigibarbato added the bug Something isn't working label Jan 16, 2023
@luigibarbato luigibarbato linked a pull request Jan 16, 2023 that will close this issue
@luigibarbato luigibarbato added this to the 1.8.0-rc1 milestone Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants