kubectl_apply
Apply Kubernetes resources from YAML manifests, either inline or from a file, with options for dry run, force deletion, and namespace targeting.
Instructions
Apply a Kubernetes YAML manifest from a string or file
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "kubectl_apply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| manifest | No | YAML manifest to apply | |
| filename | No | Path to a YAML file to apply (optional - use either manifest or filename) | |
| namespace | No | Kubernetes namespace | default |
| dryRun | No | If true, only validate the resource, don't actually execute the operation | |
| force | No | If true, immediately remove resources from API and bypass graceful deletion | |
| context | No | Kubeconfig Context to use for the command (optional - defaults to null) |