Roles and Cluster Roles
Last updated
Last updated
Adding Roles or Cluster Roles
To add a Role or a Cluster Role, begin by selecting the "Roles" tab on the RBAC View. Then, on the left panel where the list of all existing roles and cluster roles is displayed, click on the plus button located on the header of the list.
The Add Role Dialog will appear. Depending on your preferences, choose from the options "Role" or "Cluster Role." Set a name, and if you're selecting a Role, you'll also need to choose a namespace. Click on "Add," and your Role or Cluster Role will be created.
Defining Permissions:
To set the permissions in a Role or Cluster Role, navigate to the central panel called "Permissions."
Click on the "Add" button to add a new permission. Then, use the inline editor to define the namespace, resources, API group, as well as the verbs that the permission allows (create, update, patch, delete, etc.).
To delete any permissions, select the row on the grid and click on the delete button.
Any changes made using the permission editor will be reflected in the YML Editor at the bottom, or vice versa. Any CRUD operations on the permissions can be directly performed in the YML editor at the bottom. This will also synchronize the permission editor, ensuring consistency between the two interfaces.
User Usage:
One useful view located on the far right of the screen is the user section. Once a role or cluster role is selected, this section will display any user, group, or service account that has a binding to the selected role or cluster role.