Skip to content
masterclass Buddy

Kubernetes · Resource

RoleBinding

A RoleBinding gives users, groups, or service accounts the permissions from a Role or ClusterRole. Its namespace controls where those permissions work.

Last updated

Syntax

kubectl create rolebinding NAME --clusterrole=NAME|--role=NAME [--user=username] [--group=groupname] [--serviceaccount=namespace:serviceaccountname] [--dry-run=server|client|none]

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • Role
  • ClusterRole
  • ClusterRoleBinding
  • Subject
  • RoleRef
  • kubectl create rolebinding

Source: RoleBinding | Kubernetes. Checked 2026-11-03.