check_cluster_health
Check Kubernetes cluster health and optionally detect RBAC permission conflicts such as duplicate bindings or redundant permissions. Provides a health report including optional RBAC conflict analysis.
Instructions
检查Kubernetes集群健康状态,可选附带 RBAC 权限冲突检测
Args: kubeconfig_path: kubeconfig 文件路径,不指定则使用 cluster_name 或默认集群 cluster_name: 集群配置名称(clusters.json 中的 name),kubeconfig_path 未指定时使用 include_rbac_check: 是否同时检查 RBAC 权限冲突(如重复绑定、冗余权限),默认 False rbac_namespace: RBAC 检查的目标命名空间,仅 include_rbac_check=True 时有效;省略则检查所有系统命名空间
Returns: 集群健康检查结果(含可选 RBAC 冲突报告)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "check_cluster_health"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cluster_name | No | ||
| rbac_namespace | No | ||
| kubeconfig_path | No | ||
| include_rbac_check | No |