1.2. 分析 Collector pod 状态
检查 pod 的最新状态是确定 Collector 崩溃原因的另一种简单的方法。失败消息被记录到最新状态,并可使用 kubectl describe pod 或 oc describe pod 命令访问。
注意
如果使用 Kubernetes,请输入 kubectl 而不是 oc。
流程
描述 Collector pod:
$ oc describe pod -n stackrox <collector_pod_name>其中:
<collector_pod_name>-
指定 Collector pod 的名称,如
collector-vclg5。
输出示例
# ... Last State: Terminated Reason: Error Message: No suitable kernel object downloaded Exit Code: 1 Started: Fri, 21 Oct 2022 11:50:56 +0100 Finished: Fri, 21 Oct 2022 11:51:25 +0100 # ...在这个示例中,您可以看到 Collector 无法下载内核驱动程序。