Create a Service Account
This section describes how to create a service account.
Prerequisites
You need to join a cluster and have the cluster-admin role in the cluster.
Steps
-
Log in to the KubeSphere web console as a user with the cluster-admin role and go to your cluster.
-
Click Configuration > Service Accounts in the left navigation pane.
-
On the Service Account list page, click Create.
-
In the Create Service Account dialog box, set the information for the service account, then click Create.
Parameter Description Name
The name of the service account. Names must be unique within a project. The name can only contain lowercase letters, numbers, and hyphens (-). It must start and end with a lowercase letter or number, and have a maximum length of 63 characters.
Alias
A user-defined alias for the service account. Aliases can be the same across different service accounts.
Project
The project to which the service account belongs.
Description
Description information for the service account. The description can contain any characters and has a maximum length of 256 characters.
Project Role
The role of the service account within the project. The service account’s role determines its permissions in the project.
After the service account is created, it will appear in the service account list.