backup_namespace
Back up specified built-in and custom resources in a Kubernetes namespace to a multi-document YAML file, with Secrets included by default and data preserved.
Instructions
备份命名空间中的指定内置资源和自定义资源,保存为多文档 YAML。Secret 默认包含,data 原样保留。
Args: namespace: 命名空间名称 cluster_name: 集群名称(可选) include_secrets: 是否包含 Secret,默认 True 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": {
"namespace": "<namespace>"
},
"name": "backup_namespace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| namespace | Yes | ||
| cluster_name | No | ||
| include_secrets | No | ||
| kubeconfig_path | No |