check_pod_health
Check Kubernetes pod health status, with options to filter only failed pods, specify namespace, pod name, and cluster.
Instructions
检查Pod健康状态,支持筛选失败的Pod
Args: pod_name: Pod名称,如果不提供则检查命名空间中的所有Pod namespace: Kubernetes命名空间 kubeconfig_path: kubeconfig 文件路径,不指定则使用 cluster_name 或默认集群 cluster_name: 集群配置名称(clusters.json 中的 name),kubeconfig_path 未指定时使用 only_failed: 是否只返回失败或异常的Pod,默认为False limit: 当检查命名空间内所有 Pod 时,最多处理的 Pod 数量,默认 100,避免大量 Pod 时过慢
Returns: Pod健康状态报告,包含失败Pod筛选功能
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| pod_name | No | ||
| namespace | No | default | |
| only_failed | No | ||
| cluster_name | No | ||
| kubeconfig_path | No |