clusterrole_create
Create a ClusterRole in Kubernetes by specifying the context name, role name, and policy rules. Simplifies role management across clusters via the k8s-pilot MCP 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
Name | Required | Description | Default |
---|---|---|---|
context_name | Yes | ||
name | Yes | ||
rules | Yes |
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"
}