Loading...
Loading...
Compare original and translation side by side
| Priority | Rule | Impact | Tools |
|---|---|---|---|
| 1 | Check metrics-server before using metrics | CRITICAL | |
| 2 | Run health check before deployments | HIGH | |
| 3 | Compare staging vs prod before release | MEDIUM | |
| 4 | Document baseline metrics | LOW | |
| 优先级 | 规则 | 影响程度 | 工具 |
|---|---|---|---|
| 1 | 使用metrics前先检查metrics-server | 严重 | |
| 2 | 部署前执行健康检查 | 高 | |
| 3 | 发布前对比预发布环境与生产环境 | 中 | |
| 4 | 记录基准指标数据 | 低 | |
| Task | Tool | Example |
|---|---|---|
| Cluster health | | |
| Pod metrics | | |
| Node summary | | |
| Compare envs | | |
| List CRDs | | |
| 任务 | 工具 | 示例 |
|---|---|---|
| 集群健康检查 | | |
| Pod指标 | | |
| 节点汇总 | | |
| 环境对比 | | |
| 列出CRD | | |
get_resource_metrics(namespace="default")
get_node_metrics()
get_top_pods(namespace="default", sort_by="cpu")
get_top_pods(namespace="default", sort_by="memory")get_resource_metrics(namespace="default")
get_node_metrics()
get_top_pods(namespace="default", sort_by="cpu")
get_top_pods(namespace="default", sort_by="memory")cluster_health_check()
get_cluster_info()cluster_health_check()
get_cluster_info()compare_namespaces(
namespace1="staging",
namespace2="production",
resource_type="deployment"
)
compare_namespaces(
namespace1="default",
namespace2="default",
resource_type="deployment",
context1="staging-cluster",
context2="prod-cluster"
)compare_namespaces(
namespace1="staging",
namespace2="production",
resource_type="deployment"
)
compare_namespaces(
namespace1="default",
namespace2="default",
resource_type="deployment",
context1="staging-cluster",
context2="prod-cluster"
)get_api_versions()
check_crd_exists(crd_name="certificates.cert-manager.io")
list_crds()get_api_versions()
check_crd_exists(crd_name="certificates.cert-manager.io")
list_crds()get_nodes_summary()
kubeconfig_view()
list_contexts_tool()get_nodes_summary()
kubeconfig_view()
list_contexts_tool()cluster_health_check()
get_nodes_summary()
get_events(namespace="")
list_crds()cluster_health_check()
get_nodes_summary()
get_events(namespace="")
list_crds()get_resource_metrics(namespace="production")
get_nodes_summary()
compare_namespaces(namespace1="staging", namespace2="prod", resource_type="deployment")get_resource_metrics(namespace="production")
get_nodes_summary()
compare_namespaces(namespace1="staging", namespace2="prod", resource_type="deployment")get_events(namespace)
get_pod_logs(name, namespace, previous=True)
get_resource_metrics(namespace)
describe_node(name)get_events(namespace)
get_pod_logs(name, namespace, previous=True)
get_resource_metrics(namespace)
describe_node(name)