The get clusterrole command retrieves a list of all ClusterRoles in the Kubernetes cluster. ClusterRoles define permissions at the cluster level, allowing access to resources across namespaces.
Usage
cldkctl get clusterrole [flags]
Steps
Follow the steps below to run and view the result of this command:
Open your terminal in the directory containing the cldkctl binary.
Run the following command in your terminal:
./cldkctl get clusterrole
The command displays a list of ClusterRoles along with their creation dates.
Column
Description
Name
Displays the name of each ClusterRole defined in the cluster.
Created At
Shows the date when the ClusterRole was created.
Flags
This command supports global flags. Refer to the Global Flags section for details.