使用命令行工具

kubeprober 使用 kubectl + kubectl-probe 的插件就可以完成所有的操作。 ```shell script Usage: kubectl-probe [flags] kubectl-probe [command]

Available Commands: help Help about any command once Perform one-time diagnostics of remote cluster or local cluster oncestatus Print One-time probe status of remote cluster or local cluster status Print probe status of remote cluster or local cluster version Print the version number of Kubeprober

Flags: -h, —help help for kubectl-probe

Use “kubectl-probe [command] —help” for more information about a command.

  1. ## 查看集群列表
  2. ```shell script
  3. kubectl get cluster

查看 Probe 列表

```shell script kubectl get probe

  1. ## Probe 关联集群
  2. ```shell script
  3. kubectl label cluster <clusterName> probe/<probeName>=true

查看集群诊断结果

```shell script kubectl probe status -c

  1. ## 对集群执行一次性诊断
  2. ```shell script
  3. kubectl probe once -c <clusterName>

查看集群的一次性诊断历史记录

```shell script kubectl probe oncestatus -c -l

  1. ## 查看集群的一次性诊断历史结果
  2. ```shell script
  3. kubectl probe oncestatus -c <clusterName> -i <onceID>

查询帮助

shell script kubectl probe help