clusterrole
Last updated

The describe clusterrole command retrieves detailed information about a specific ClusterRole in the Kubernetes cluster. This includes metadata, assigned permissions, and accessible resources across all namespaces.
cldkctl describe clusterrole [name] [flags]Follow the steps below to run and view the result of this command:
Run the following command in your terminal:
cldkctl describe clusterrole [name]Replace [name] with the ClusterRole name you want to inspect.
To view the resource name, refer to the corresponding get clusterrole section.
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]Once completed successfully, the detailed information about the specified ClusterRole will appear in your terminal. This output contains metadata fields, managed fields, and permission rules.

The following table describes the additional fields specific to the ClusterRole resource.
rules
A list of permission rules associated with the ClusterRole.
rules.verbs
The actions that can be performed.
rules.apiGroups
The API groups these rules apply to.
rules.resource
The Kubernetes resources that these rules control access to.
This command supports global flags. Refer to the Global Flags section for details.
For common metadata fields, refer to the Common Output Fields table at the beginning of this section.
-h, --help
Help for describe clusterrole command.
Last updated