clusterrole
Last updated

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.
cldkctl create clusterrole [flags]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 cldkctl command.
Use the --file flag to point to the YAML file.
(Optional) To specify a project, add the --project flag.
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.

This command supports global flags. Refer to the Global Flags section for details.
-h, --help
Help for clusterrole
Last updated