View Service Account Details

This section explains how to view details of a service account.

Prerequisites

You should join a project and have the Service Account Viewing permission within the project. For more information, refer to “Project Members” and “Project Roles”.

Steps

  1. Log in to the KubeSphere web console with a user who has the Service Account Viewing permission, and access your project.

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

  3. Click the name of a service account in the list to open its details page.

  4. View the resource attributes of the service account in the Attributes area on the left side of the service account details page.

    ParameterDescription

    Cluster

    The cluster to which the service account belongs.

    Project

    The project to which the service account belongs.

    Role

    The role of the service account in its associated project.

    Creation Time

    The creation time of the service account.

    Creator

    The user who created the service account.

  5. View the authentication information and corresponding kubeconfig information of the service account on the Data tab on the right side of the service account details page.

    • In the Data Settings area, click on show/hide in the upper right corner to display/hide the authentication information in plaintext.

    • In the kubeconfig Settings area, click on copy in the upper right corner to copy the kubeconfig information. Click on download to download the kubeconfig.yaml file.

    Note

    The kubeconfig information contains the authentication details for the service account. You need to configure this kubeconfig information in your application to enable access to the KubeSphere cluster. For more information, refer to the Kubernetes Documentation.