fINTERACTIVE FIELD GUIDES
People and clusters06 / 30

ClusterRoleBinding

Grants a ClusterRole’s permissions to users, groups, or service accounts across the cluster.

Learning status: Not practiced

A ClusterRoleBinding connects a ClusterRole to its subjects at cluster scope. It has no namespace. If a subject is a service account, its subject record still includes the account's namespace and name.

For example, a monitoring agent that watches nodes needs a ClusterRole with the watch verb on nodes and a ClusterRoleBinding naming the agent's service account. Nodes belong to the cluster as a whole.

Check every rule in the referenced ClusterRole before making the binding. If the role also allows listing pods, the agent receives that permission in every namespace. For a dashboard that reads pods only in orders, use a RoleBinding in orders.

Source: Kubernetes RBAC reference.