ClusterRole

An RBAC object like a Role but not tied to a namespace, used for cluster-wide resources or as a set of rules shared by many namespaces.

A broad ClusterRole bound cluster-wide can hand over control of the entire cluster.

In more detail

Bound with a ClusterRoleBinding it applies everywhere; bound with a RoleBinding it applies only in that binding's namespace. The built-in cluster-admin ClusterRole allows everything and should be granted rarely.

Example

Because the namespace is a real boundary, the course prefers a namespaced Role wherever it is enough.

Related terms

Taught in

References

Certification courses