batch_restart_resources
Batch restart Kubernetes resources like Deployments and StatefulSets in a namespace, with optional kubeconfig or cluster selection.
Instructions
批量重启资源
Args: resources: JSON格式的资源列表,格式:[{"kind": "Deployment", "name": "my-app"}, {"kind": "StatefulSet", "name": "my-db"}] namespace: 命名空间 kubeconfig_path: kubeconfig 文件路径,不指定则使用 cluster_name 或默认集群 cluster_name: 集群配置名称(clusters.json 中的 name),kubeconfig_path 未指定时使用
Returns: 批量重启结果
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| namespace | No | default | |
| resources | Yes | ||
| cluster_name | No | ||
| kubeconfig_path | No |