This section describes how to modify service account roles.

You can control the permissions of a service account by assigning roles to it, enabling the service account to access specific resources and perform specific operations.

Prerequisites

You need to be a member of a cluster and have the cluster-admin role in the cluster.

Steps

  1. Log in to the KubeSphere web console as a user with the cluster-admin role and go to your cluster.

  2. Click Configuration > Service Accounts in the left navigation pane.

  3. On the right side of the service account you need to operate, click more, then select Edit Role from the dropdown list.

  4. In the Edit Role dialog box, select a project role from the dropdown list, then click OK.