k8s_apply_resource
Apply a Kubernetes resource configuration to create or update it, similar to 'kubectl apply', across multiple clusters.
Instructions
Apply a configuration to a resource (create if it doesn't exist, update if it does). Similar to 'kubectl apply'. The content must include apiVersion, kind, and metadata with name.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"context": "<context>",
"yaml_content": "<yaml_content>"
},
"name": "k8s_apply_resource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | Yes | ||
| namespace | No | ||
| yaml_content | Yes |