Role Binding

Role binding defines the binding relationship between a role and a service account.

Role binding defines the binding relationship between a role and a service account, thus controlling the operational privileges of the service account.

Please see Kubernetes official documentation-RBAC for more details on role binding.

Entry: In the cloud management platform, click the top left corner of navigation menu, and click “Containers/Clusters/Role Binding” menu item in the left menu bar that pops up to enter the role binding page.

View role bindings

This function is used to filter role binding information based on clusters and namespaces.

  1. In the role binding page, by default, you can view the role binding information of all namespaces under a cluster.

  2. When there are multiple clusters in the environment, click the cluster input box on the right side of the list and select other clusters to view the role binding information of all namespaces under other clusters.

  3. When there are multiple namespaces under the cluster, click the input box on the right side of the namespace above the list, select the namespace, and view the role binding information under the specified namespace.

Create role binding

This function is used to create role bindings and to authorize them.

  1. On the role binding page, click the “Create” button at the top of the list to enter the Create Role Binding page.
  2. Configure the following parameters.
    • Name: Set the name of the role binding.
    • Cluster: Select the cluster to which the role binding belongs.
    • Namespace: Select the namespace to which the role binding belongs.
    • Role type: Support selecting role and cluster role.
    • Role/cluster role: Select the specific role or cluster role.
    • Subject: Select the type of service account to be bound, including User, Group, and service account.
    • Subject Name: Set the specific User, Group and Service Account.
  3. Click the “Create” button to complete the operation.

Delete Role Binding

This function is used to delete role bindings.

Delete

  1. On the role binding page, click the “Delete” button on the right action bar of the role binding, and the action confirmation dialog box will pop up.
  2. Click the “OK” button to delete the role bindings and related resources.

Batch Delete

  1. Select one or more role bindings in the Role Bindings list, and click the “Delete” button at the top of the list to bring up the action confirmation dialog.
  2. Click the “OK” button to delete the role bindings and related resources.

View/Edit

This function is used to view or edit the role binding’s yaml file.

  1. On the role binding page, click the “View/Edit” button in the right action bar of the role binding to bring up the View/Update dialog box.
  2. Support viewing and editing the yaml file information of role binding.
  3. After editing the yaml file, click the “OK” button to take effect.

View role binding details

This function is used to view the role binding related information.

  1. On the role binding page, click the role binding name item to enter the role binding details page.
  2. View the following information: Cloud ID, ID, name, status, domain, project, cluster, namespace, created at, updated at, notes, etc.

View source information

This function is used to view and edit the yaml information of the role binding.

  1. On the role binding page, click the role binding name item to enter the role binding details page.
  2. Click the “Source Information” tab to enter the source information page.
  3. Click the “Copy Content” button to copy the yaml file information of the node.
  4. After updating the yaml file, click the “Update” button.

View Operation Log

This function is used to view the operation logs related to role binding.

  1. On the role binding page, click the role binding name item to enter the role binding details page.
  2. Click the Operation Log tab to enter the Operation Log page.
    • Load More Logs: In the Operation Logs page, the list shows 20 operation logs by default. To view more operation logs, please click the “Load More” button to get more logs.
    • View Log Details: Click the “View” button on the right column of the operation log to view the log details. Copy details are supported.
    • View logs of specified time period: If you want to view the operation logs of a certain time period, set the specific date in the start date and end date at the top right of the list to query the log information of the specified time period.
    • Export logs: Currently, only the logs displayed on this page are supported to be exported. Click the upper-right corner of icon, set the export data column in the pop-up export data dialog, and click the “OK” button to export the logs.