8.3. 从 vSphere 问题检测器 Operator 中查看事件
在 vSphere 问题检测器 Operator 运行并执行配置检查后,Operator 会创建可以从命令行界面(CLI)或 OpenShift Container Platform Web 控制台查看的事件。
先决条件
- vSphere 问题检测器 Operator 在集群上运行检查。
流程
要使用 CLI 查看事件,请运行以下命令:
oc get event -n openshift-cluster-storage-operator \ --sort-by={.metadata.creationTimestamp}
$ oc get event -n openshift-cluster-storage-operator \ --sort-by={.metadata.creationTimestamp}
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 输出示例
16m Normal Started pod/vsphere-problem-detector-operator-xxxxx Started container vsphere-problem-detector 16m Normal Created pod/vsphere-problem-detector-operator-xxxxx Created container vsphere-problem-detector 16m Normal LeaderElection configmap/vsphere-problem-detector-lock vsphere-problem-detector-operator-xxxxx became leader
16m Normal Started pod/vsphere-problem-detector-operator-xxxxx Started container vsphere-problem-detector 16m Normal Created pod/vsphere-problem-detector-operator-xxxxx Created container vsphere-problem-detector 16m Normal LeaderElection configmap/vsphere-problem-detector-lock vsphere-problem-detector-operator-xxxxx became leader
Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
要使用 OpenShift Container Platform Web 控制台查看事件,请导航到 Home
Events,然后从 Project 菜单中选择 openshift-cluster-storage-operator
。