0
0
Kubernetesdevops~5 mins

RoleBindings and ClusterRoleBindings in Kubernetes - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a RoleBinding in Kubernetes?
A RoleBinding grants permissions defined in a Role to a user or set of users within a specific namespace.
Click to reveal answer
beginner
How does a ClusterRoleBinding differ from a RoleBinding?
A ClusterRoleBinding grants permissions defined in a ClusterRole to users across the entire cluster, not limited to a namespace.
Click to reveal answer
intermediate
Can a RoleBinding reference a ClusterRole?
Yes, a RoleBinding can reference either a Role or a ClusterRole, but its permissions apply only within the RoleBinding's namespace.
Click to reveal answer
beginner
What is the purpose of RBAC in Kubernetes?
RBAC (Role-Based Access Control) manages who can do what actions on which resources in a Kubernetes cluster.
Click to reveal answer
beginner
What subjects can be bound in RoleBindings and ClusterRoleBindings?
Subjects can be users, groups, or service accounts that receive the permissions defined in the Role or ClusterRole.
Click to reveal answer
What scope does a RoleBinding apply to?
AA single namespace
BThe entire cluster
COnly system components
DOnly nodes
Which binding grants cluster-wide permissions?
AClusterRoleBinding
BRoleBinding
CServiceAccountBinding
DNamespaceBinding
Can a ClusterRoleBinding bind to a Role?
AOnly for system users
BYes, always
COnly if in the default namespace
DNo, ClusterRoleBindings bind only to ClusterRoles
Which of these is NOT a valid subject in RoleBindings?
AUser
BPod
CServiceAccount
DGroup
What does RBAC stand for?
ARole-Bound Access Control
BResource-Based Access Control
CRole-Based Access Control
DResource-Bound Access Control
Explain the difference between RoleBinding and ClusterRoleBinding in Kubernetes.
Think about the scope of permissions and what roles they connect to.
You got /4 concepts.
    Describe what subjects are in the context of RoleBindings and ClusterRoleBindings and give examples.
    Subjects are who gets the permissions.
    You got /3 concepts.