hello, is it possible to create a cluster-wide role via role templates? E.g., I would like to create a role to allow list all CRDs, which must be the clusterwide role. If I just add it as another roletemplate, it does not work. Creating some namespace scoped role works as expected. I did not find a word about this in rancher documentation.
p
prehistoric-crayon-98449
06/15/2025, 4:40 PM
Yeah so you'll need to use ClusterRoles and ClusterRolebindings vs Roles and RoleBindings
to confirm, you have gone to users and auth --> role templates --> clusters tab and created a role there, then added the target user / group as a member of that cluster with that role?
n
narrow-guitar-87575
06/16/2025, 8:21 PM
ah, yes, this is correct, thank you. I wondered, if create-ns role is under Project/Namespace and it is actually clustrescope role, then if I can create the same Project/Namespace clusterwide role.
narrow-guitar-87575
06/16/2025, 8:22 PM
is there any shorcut so that the cluster role template is applied to all the users? something like '*' in the user field