Kubernetes: RoleBinding, ClusterRoleBinding

RoleBinding in Kubernetes is used to tie together ServiceAccount and/or User and/or Group to particular Role/ClusterRole.

RoleBinding is limited within a particular namespace, whereas ClusterRoleBinding is global.

Binding Role to ServiceAccount :

Shell

Binding Role to User:

Shell

Binding Role to Group:

Shell

Once you bind, you can check the permission with:

Shell
Shell

Refrences: