-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
'local-path-provisioner-role' ClusterRole missing from k3s-v0.10.0 installation #963
Comments
Could this be related to my bugfix in wrangler? The manifest file delivered with k3s still includes namespaces for cluster-scoped objects. If the wrangler fix has not been pulled in, the issue you describe may still be present. |
Thanks for the feedback. Not sure which deployment file is being used, but looking at the one bundled with k3s, the 'local-path-provisioner-role' is scoped to the 'kube-system'. |
You could try to remove the namespace from the ClusterRole and restart k3s. |
Yes that did the trick. |
Thanks for the info @matlec, I was able to duplicate by re-installing/modifying the k3s service to run with the |
Related issue #884 Closing issue. Please feel free to re-open if you see any fails. Thanks. |
Version:
v0.10.0
Describe the bug
Doing a fresh install (--docker) of k3s v0.10.0 results in 'local-path-provisioner' pod failing to load due to missing 'local-path-provisioner-role':
ERROR: logging before flag.Parse: E1025 20:21:52.836721 1 leaderelection.go:252] error retrieving resource lock kube-system/rancher.io-local-path: endpoints "rancher.io-local-path" is forbidden: User "system:serviceaccoun ││ t:kube-system:local-path-provisioner-service-account" cannot get resource "endpoints" in API group "" in the namespace "kube-system": RBAC: clusterrole.rbac.authorization.k8s.io "local-path-provisioner-role" not found
Getting all ClusterRoles in 'kube-system':
To Reproduce
Install k3s v0.10.0 and get status of 'local-path-provisoner' pod in 'kube-system' namespace.
Expected behavior
'local-path-provisoner' pod loading successfully.
Actual behavior
'local-path-provisoner' pod not loading successfully.
The text was updated successfully, but these errors were encountered: