Page cover

clusterrole

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:

  1. Open your terminal in the directory containing the cldkctl binary.

  2. Run the following command in your terminal:

./cldkctl get clusterrole
  1. 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.

Flag
Description

-h, --help

Help for get clusterrole command.

Last updated