Bird
0
0

A ClusterRoleBinding is created but users still lack permissions. What could be wrong?

medium📝 Troubleshoot Q7 of 15
Kubernetes - RBAC and Security
A ClusterRoleBinding is created but users still lack permissions. What could be wrong?
AThe ClusterRoleBinding is applied in the wrong namespace
BThe ClusterRoleBinding references a Role instead of a ClusterRole
CThe ClusterRoleBinding is missing the apiVersion field
DThe ClusterRoleBinding's subject kind is incorrectly set to 'Group' instead of 'User'
Step-by-Step Solution
Solution:
  1. Step 1: Understand ClusterRoleBinding requirements

    ClusterRoleBinding must reference a ClusterRole, not a Role, because Roles are namespace-scoped.
  2. Step 2: Check other options

    Subject kind 'Group' is valid; ClusterRoleBindings are cluster-scoped and do not use namespaces; missing apiVersion causes YAML errors.
  3. Final Answer:

    The ClusterRoleBinding references a Role instead of a ClusterRole -> Option B
  4. Quick Check:

    ClusterRoleBinding must reference ClusterRole [OK]
Quick Trick: ClusterRoleBinding links only to ClusterRole, not Role [OK]
Common Mistakes:
  • Using Role instead of ClusterRole
  • Applying ClusterRoleBinding in namespace
  • Confusing subject kinds

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes