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

Kubeconfig generation not working in k8s clsuter with version higher than 1.24 #168

Open
colteanDeviqon opened this issue May 8, 2023 · 3 comments

Comments

@colteanDeviqon
Copy link

Hello,

I have installed permission manager chart version 1.8.0 in a 1.24.2 cluster and when trying to get a kubeconfig for a new user the permission-manager just crashes and restarts without generating the config.

From investigation it looks like starting version 1.24 the LegacyServiceAccountTokenNoAutoGeneration feature gate is beta, and enabled by default which means that service account tokens are no longer auto-generated for every ServiceAccount.

So it looks like the token is not creating for service accounts and thus it cannot generate the kubeconfig for the service accounts.

@omissis
Copy link
Contributor

omissis commented May 8, 2023

hi @colteanDeviqon, thanks for your report! We are aware of the problem, and we'll try to come up with a solution as soon as time will allow it :)

@colteanDeviqon
Copy link
Author

colteanDeviqon commented Aug 29, 2023 via email

@Ralaam
Copy link

Ralaam commented Aug 31, 2023

Yes thank you! I did the same with token generation. After creating the secret, mount it to the "empty" service account and everything will work.

https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#manually-create-a-long-lived-api-token-for-a-serviceaccount

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants