-
Notifications
You must be signed in to change notification settings - Fork 22
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
get kubeconfig is not found #6
Comments
Hi, same issue here:
Maybe this has something to do with a change in 1.24, since then service account tokens are not created automatically anymore. See this for further information. It would be great, if you can fix this. Thanks! |
Any update on this?
for i in (seq 1 $MAX_USERS)
echo "
kind: User
apiVersion: klum.cattle.io/v1alpha1
metadata:
name: user$i
spec:
clusterRoles:
- view
roles:
- namespace: user$i
clusterRole: admin
" | kubectl apply -f-
echo "
apiVersion: v1
kind: Secret
metadata:
name: user$i
namespace: klum
annotations:
kubernetes.io/service-account.name: user$i
type: kubernetes.io/service-account-token
" | kubectl apply -f-
end Inspired by https://stackoverflow.com/questions/72256006/service-account-secret-is-not-listed-how-to-fix-it Thanks & regards, |
Hi! Same with k3s-based cluster. Klum won't create (or cannot) secrets. Just created secret for ServiceAccount by @PhilipSchmid suggestion and kubeconfig created. |
First, thanks a lot for klum and your effort! Is there any chance to add this secret creation to the klum logic in case k8s >= 1.24 is detected? Cheers Karsten |
This works for me. |
@ibuildthecloud First, thanks a lot for your effort. |
@k11h-de I believe @ibuildthecloud does not intend to work on this project anymore. |
@jadolg Thanks a lot for your fixes and ongoing development on the code base. |
Hello,
This project was exactly what I was looking for but I can't get it to work. Basically follow the first few steps and everything is fine.
kubectl apply -f https://raw.githubusercontent.com/ibuildthecloud/klum/master/deploy.yaml
Create the below file.
Apply with:
kubectl apply -f create_user_chris.yml
Then get the kubeconfig.
kubectl get kubeconfig chris -o json | jq .spec > kubeconfig
Error from server (NotFound): kubeconfigs.klum.cattle.io "chris" not found
The text was updated successfully, but these errors were encountered: