# serviceaccount

The describe serviceaccount command retrieves detailed information about a specific Service Account (SA) in the Kubernetes cluster. This includes metadata, associated secrets, roles, and permissions.

## Usage

```
cldkctl describe serviceaccount [name] [flags]
```

## Steps

Follow the steps below to run and view the result of this command:

1. Run the following command in your terminal:

```
./cldkctl describe serviceaccount [name] 
```

2. Replace \[name] with the Service Account name you want to inspect.
3. To view the resource name, refer to the corresponding get serviceaccount section.
4. If the resource is located in a non-default namespace, include the `-n` or `--namespace` flag followed by the namespace name.

```
./cldkctl describe [resource] [name] -n [namespace]
```

5. Once completed successfully, the detailed information about the specified Service Account will appear in your terminal. The output includes metadata, namespace, UID, and creation timestamp.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2Fs8KNjF0IwGiVG9WMMxJG%2Funknown.png?alt=media&#x26;token=f3287b40-c61f-463e-9776-fc6510bbd222" alt=""><figcaption></figcaption></figure>

The following table describes the additional fields specific to the ServiceAccount resource.

| Column                     | Description                                                        |
| -------------------------- | ------------------------------------------------------------------ |
| metadata.name              | The name of the Service Account.                                   |
| metadata.namespace         | The namespace where the Service Account is located.                |
| metadata.uid               | A unique identifier automatically assigned to the Service Account. |
| metadata.resourceVersion   | Internal version number for tracking changes to this resource.     |
| metadata.creationTimestamp | The date and time when the Service Account was created.            |

## Flags

{% hint style="info" %}

1. This command supports [global flags](https://docs.cloudeka.ai/cloudeka-api-list/global-flags). Refer to the Global Flags section for details.
2. For common metadata fields, refer to the Common Output Fields table at the beginning of this section.
   {% endhint %}

| Flag       | Description                |
| ---------- | -------------------------- |
| -h, --help | Help for describe command. |
