kubectl_patch
Apply strategic, merge, or JSON patches to Kubernetes resources to modify specific fields without full resource replacement.
Instructions
Update field(s) of a resource using strategic merge patch, JSON merge patch, or JSON patch
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resourceType | Yes | Type of resource to patch (e.g., pods, deployments, services) | |
| name | Yes | Name of the resource to patch | |
| namespace | No | Kubernetes namespace | default |
| patchType | No | Type of patch to apply | strategic |
| patchData | No | Patch data as a JSON object | |
| patchFile | No | Path to a file containing the patch data (alternative to patchData) | |
| dryRun | No | If true, only validate the resource, don't actually execute the operation | |
| context | No | Kubeconfig Context to use for the command (optional - defaults to null) |