kubectl
Execute kubectl commands or apply YAML configurations securely across Kubernetes clusters using the OCM MCP Server, enabling efficient cluster management and resource deployment.
Instructions
Securely run a kubectl command or apply YAML. Provide either 'command' or 'yaml'.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
cluster | No | The cluster name in a multi-cluster environment. Defaults to the hub cluster. | default |
command | Yes | The full kubectl command to execute. Must start with 'kubectl'. | |
yaml | Yes | YAML configuration to apply, provided as a string. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"cluster": {
"default": "default",
"description": "The cluster name in a multi-cluster environment. Defaults to the hub cluster.",
"type": "string"
},
"command": {
"description": "The full kubectl command to execute. Must start with 'kubectl'.",
"type": "string"
},
"yaml": {
"description": "YAML configuration to apply, provided as a string.",
"type": "string"
}
},
"required": [
"command",
"yaml"
],
"type": "object"
}