batch_create_resources
Create multiple Kubernetes resources in one operation using JSON definitions, with rollback on failure and cluster selection options.
Instructions
批量创建资源
Args: resources: JSON格式的资源列表,每个资源包含kind、metadata、spec namespace: 命名空间 rollback_on_failure: 失败时是否回滚已创建的资源 kubeconfig_path: kubeconfig 文件路径,不指定则使用 cluster_name 或默认集群 cluster_name: 集群配置名称(clusters.json 中的 name),kubeconfig_path 未指定时使用
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": {
"resources": "<resources>"
},
"name": "batch_create_resources"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| namespace | No | default | |
| resources | Yes | ||
| cluster_name | No | ||
| kubeconfig_path | No | ||
| rollback_on_failure | No |