k8s-pilot

by bourbonkk

clusterrole_create

Create a ClusterRole in Kubernetes by specifying the context name, ClusterRole name, and policy rules to define access controls across the cluster using the k8s-pilot server.

Instructions

Create a ClusterRole in the cluster.

Args: context_name: The Kubernetes context name name: The ClusterRole name rules: List of policy rules

Returns: Status of the creation operation

Input Schema

NameRequiredDescriptionDefault
context_nameYes
nameYes
rulesYes

Input Schema (JSON Schema)

{ "properties": { "context_name": { "title": "Context Name", "type": "string" }, "name": { "title": "Name", "type": "string" }, "rules": { "items": {}, "title": "Rules", "type": "array" } }, "required": [ "context_name", "name", "rules" ], "title": "clusterrole_createArguments", "type": "object" }
ID: varavj97rf