backup_resource
Back up the original YAML of a specified Kubernetes resource, including built-in or custom resources, to preserve exact configuration for restore or audit.
Instructions
备份指定资源的原样 YAML。支持内置资源和自定义资源。
Args: resource_type: 类型名、Kind 或复数名,如 deployment、Secret、mysqls resource_name: 资源名称 namespace: 命名空间 api_version: API 版本。同一 Kind 属于多个 API 组时必填,如 example.com/v1 cluster_name: 集群名称(可选) kubeconfig_path: kubeconfig 文件路径,不指定则使用 cluster_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": {
"resource_type": "<resource_type>",
"resource_name": "<resource_name>",
"namespace": "<namespace>"
},
"name": "backup_resource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| namespace | Yes | ||
| api_version | No | ||
| cluster_name | No | ||
| resource_name | Yes | ||
| resource_type | Yes | ||
| kubeconfig_path | No |