< img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=3131724&fmt=gif" />

View Service Account Details

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

Prerequisites

You should join a cluster and have the Project Resource Viewing permission within the cluster. For more information, refer to "Cluster Members" and "Cluster Roles".

Steps

  1. Log in to the KubeSphere web console with a user who has the Project Resource Viewing permission, and access your cluster.

  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.

    Parameter Description

    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.

Receive the latest news, articles and updates from KubeSphere


Thanks for the feedback. If you have a specific question about how to use KubeSphere, ask it on Slack. Open an issue in the GitHub repo if you want to report a problem or suggest an improvement.

What’s on this Page