clusterrole
The create clusterrole command creates a new ClusterRole in the Kubernetes cluster. This command defines cluster-wide permissions and access rules for users, groups, or service accounts.
Usage
cldkctl create clusterrole [flags]Steps
Follow the steps below to run and view the result of this command:
Prepare a YAML file that defines the ClusterRole configuration.
Save this file in the same directory where you will run the
cldkctlcommand.Use the
--fileflag to point to the YAML file.(Optional) To specify a project, add the
--projectflag.Run the following command in your terminal:
./cldkctl create clusterrole --file [cluster role file name]Replace [cluster role file name] with the path to your YAML configuration file.
Once completed successfully, a message “✓ Cluster Role created” will appear in your terminal.

Flags
-h, --help
Help for clusterrole
Last updated
