> For the complete documentation index, see [llms.txt](https://docs.cloudeka.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudeka.ai/cloudeka-api-list/command-reference/cldkctl-describe/clusterrolebinding.md).

# clusterrolebinding

The describe clusterrolebinding command retrieves detailed information about a specific ClusterRoleBinding in the Kubernetes cluster. This includes the bound subjects (users, groups, or service accounts) and the associated ClusterRole with its permissions.

## Usage

```
cldkctl describe clusterrolebinding [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 clusterrolebinding [name]
```

2. Replace `[name]` with the ClusterRoleBinding name you want to inspect.
3. To view the resource name, refer to the corresponding **get clusterrolebinding** 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 ClusterRoleBinding will appear in your terminal. The output includes metadata, subject references, and the associated ClusterRole.

<figure><img src="/files/Nm182E6brYBaEdEQ8OD3" alt=""><figcaption></figcaption></figure>

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

| Column             | Descrtipiton                                                                                    |
| ------------------ | ----------------------------------------------------------------------------------------------- |
| subjects           | Lists all subjects (users, groups, or service accounts) that the ClusterRoleBinding applies to. |
| subjects.kind      | The type of subject.                                                                            |
| subjects.name      | The name of the bound subject.                                                                  |
| subjects.namespace | The namespace where the subject (if a ServiceAccount) exists.                                   |
| roleRef            | Specifies the ClusterRole that this binding references.                                         |
| roleRef.apiGroup   | The API group for the referenced role.                                                          |
| roleRef.kind       | The type of role being referenced.                                                              |
| roleRef.name       | The name of the ClusterRole that defines the permissions.                                       |

## Flags

{% hint style="info" %}

1. This command supports [global flags](/cloudeka-api-list/global-flags.md). 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 clusterrolebinding command. |
