RoleBinding
Grants Kubernetes API permissions to specific subjects within one namespace.
Learning status: Not practiced
The moving parts
A RoleBinding answers two questions: who receives access, and which rules apply? Its subjects field lists users, groups, or service accounts. Its roleRef names a Role in the same namespace or a ClusterRole.
For example, a RoleBinding in orders can reference the pod-reader ClusterRole and give the reporting/dashboard service account permission to read pods in orders. Here reporting identifies the service account's home namespace. The binding's own namespace, orders, determines where the dashboard can read pods.
A RoleBinding can grant access only to namespaced resources. Even if the referenced ClusterRole includes a rule for nodes, this binding cannot grant access to nodes.
Source: Kubernetes RBAC reference.
Connects to