kubectl_generic
Execute any kubectl command with custom arguments, flags, namespace, and context to manage Kubernetes resources and troubleshoot workloads.
Instructions
Execute any kubectl command with the provided arguments and flags
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Additional command arguments | |
| name | No | Resource name | |
| flags | No | Command flags as key-value pairs | |
| command | Yes | The kubectl command to execute (e.g. patch, rollout, top) | |
| context | No | Kubeconfig Context to use for the command (optional - defaults to null) | |
| namespace | No | Kubernetes namespace | default |
| subCommand | No | Subcommand if applicable (e.g. 'history' for rollout) | |
| outputFormat | No | Output format (e.g. json, yaml, wide) | |
| resourceType | No | Resource type (e.g. pod, deployment) |