This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.6.2. 关于收集 OpenShift 沙盒容器数据
您可以使用 oc adm must-gather
CLI 命令来收集有关集群的信息。以下功能和对象与 OpenShift 沙盒容器关联:
- 所有属于任何 OpenShift 沙盒容器资源的命名空间及其子对象
- 所有 OpenShift 沙盒容器自定义资源定义 (CRD)
oc adm must-gather
CLI 命令收集以下组件日志:
- QEMU 日志
- 审计日志
- OpenShift 沙盒容器日志
- CRI-O 日志
只要至少有一个 pod 使用 kata
运行时运行,则这些组件日志就会被收集。
要使用 must-gather
来收集 OpenShift 沙盒容器数据,您必须指定 OpenShift 沙盒容器镜像:
--image=registry.redhat.io/openshift-sandboxed-containers-tech-preview/osc-must-gather-rhel8:1.1.0
--image=registry.redhat.io/openshift-sandboxed-containers-tech-preview/osc-must-gather-rhel8:1.1.0