Role
A Kubernetes Role is a namespace-scoped RBAC authorization resource that defines permitted actions on specified Kubernetes API resources.
Acing the Certified Kubernetes Administrator Exam, Second Edition
A role is a Kubernetes RBAC object that defines permitted actions on specified resources within a namespace.
- How it is used
- Controls permitted API actions on resources within a namespace when assigned through a RoleBinding.
- How deep it goes
- Works through Role creation, YAML inspection, binding, and permission checks; does not examine RBAC authorization internals.
- Examples
- Uses a pod-reader Role, a user RoleBinding, get-versus-delete permission checks, and a ServiceAccount pod-list Role.
- What you can do after
- Operate/configure it with kubectl to grant namespace-scoped permissions and verify allowed actions with `kubectl auth can-i`.
Read how Acing the Certified Kubernetes Administrator Exam, Second Edition explains role →
Google Anthos in Action
A Kubernetes Role is a namespace-scoped RBAC resource that defines permissions on resources.
- How it is used
- Controls namespace-scoped access to Kubernetes resources in a shared cluster.
- How deep it goes
- Defines Role scope and distinguishes permission sets from bindings, without providing a Role manifest or creation command.
- Examples
- Contrasts Role scope with ClusterRole and binding tables, then shows service-account access through ClusterRoleBindings for console login.
- What you can do after
- Evaluate/understand whether permissions should remain namespace-scoped or use cluster-level RBAC resources.
Also covered in
Related concepts
- role-based access controlused by · Role-based access control is an authorization model that assigns permissions to roles and grants users or other principals access through their assigned roles.
- RoleBindingused by · A RoleBinding is a Kubernetes RBAC resource that grants a Role or ClusterRole's permissions to specified users, groups, or service accounts within a namespace.
- Anthos Config Managementconfigured by · Anthos Config Management is a Google Anthos component for centrally applying policy and configuration to clusters and services.
- Kubernetesconfigured by · Kubernetes is an open-source platform for orchestrating containerized workloads and automating their deployment, scaling, and management.
- IAM roleequivalent to · An IAM role is a named permission-bearing authorization construct that can be assigned to an identity or assumed by a trusted principal to govern access to resources.
Questions about role
What is role?
A Kubernetes Role is a namespace-scoped RBAC authorization resource that defines permitted actions on specified Kubernetes API resources.
Which Manning books explain role?
Acing the Certified Kubernetes Administrator Exam, Second Edition and Google Anthos in Action.
What is role part of?
Role is part of Kubernetes RBAC. Kubernetes RBAC is Kubernetes's role-based access-control mechanism for authorizing actions on resources.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

