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

non-cluster-admin user can't get rayclusters resource #48

Open
j4ckstraw opened this issue Dec 2, 2024 · 0 comments · May be fixed by #50
Open

non-cluster-admin user can't get rayclusters resource #48

j4ckstraw opened this issue Dec 2, 2024 · 0 comments · May be fixed by #50

Comments

@j4ckstraw
Copy link

I'm a ray developer, we deploy kuberay in kubernetes platform, cluster admin run helm install xxx installed kuberay-operator for us, but we account the follow error:

$ kubectl get rayclusters
Error from server (Forbidden): rayclusters.ray.io is forbidden: User "<user>" cannot list resource "rayclusters" in API group "ray.io" in the namespace "<namespace>"

according to https://kubernetes.io/docs/reference/access-authn-authz/rbac/#aggregated-clusterroles, may helm chart clusterrole need aggregated labels to support this.

metadata:
  labels:
    rbac.authorization.k8s.io/aggregate-to-admin: "true"
    rbac.authorization.k8s.io/aggregate-to-edit: "true"
    rbac.authorization.k8s.io/aggregate-to-view: "true"
@j4ckstraw j4ckstraw linked a pull request Dec 2, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant