get_cluster_resource_usage
Get a Kubernetes cluster resource usage report for all or a specific namespace. Specify kubeconfig or cluster name to target the right cluster and identify resource consumption.
Instructions
获取集群资源使用情况
Args: namespace: Kubernetes命名空间,"all"表示所有命名空间,默认为"all" kubeconfig_path: kubeconfig 文件路径,不指定则使用 cluster_name 或默认集群 cluster_name: 集群配置名称(clusters.json 中的 name),kubeconfig_path 未指定时使用
Returns: 集群资源使用情况报告。pod_resources 超过 50 条时会截断,返回 truncated 和 total_count 说明
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| namespace | No | all | |
| cluster_name | No | ||
| kubeconfig_path | No |