Creating RoleBindings
Explore how to create RoleBindings in Kubernetes to assign users or groups the appropriate permissions within a namespace. This lesson helps you understand the scope of RoleBindings, how they differ from ClusterRoleBindings, and how to verify and manage these permissions effectively.
We'll cover the following...
Creating RoleBindings
RoleBindings bind a user (or a group, or a service Account) to a Role (or a ClusterRole). Since John wants more visibility to our cluster, we’ll create a RoleBinding that will allow them to view (almost) all the objects in the default namespace. That should be a good start of our quest to give John just the right amount of privileges.
We create a RoleBinding called jdoe. Since the ClusterRole view already provides what we need we use that instead of creating a whole new Role.
The output of the latter command proved that the new RoleBinding jdoe was indeed ...