You find a RoleBinding in namespace payments that binds the ClusterRole view to the group developers. What can members of developers actually do?
- Read and edit resources in
payments, because view includes update. The built-in view role is read-only (get/list/watch). - Read most resources in every namespace, because the role is a ClusterRole. Cluster-wide access requires a ClusterRoleBinding.
- Read most resources in the
paymentsnamespace only; the ClusterRole's rules are scoped by the namespaced binding. A RoleBinding always scopes to its namespace, even when it references a ClusterRole. - Nothing until an admin also creates a Role named view in the namespace. ClusterRoles are reusable rule sets; binding them locally is the intended pattern.
They can read most resources in the payments namespace only; a RoleBinding limits even a ClusterRole to its namespace.
Roles are rule sets; bindings decide scope. Reusing built-in ClusterRoles (view, edit, admin) through namespaced RoleBindings is the standard way to grant per-namespace access without duplicating rules.
Hearing 'ClusterRole' and answering 'cluster-wide'. The binding kind decides the scope, not the role kind.