4.6. 在受限网络中使用远程健康报告

您可以手动收集和上传 Insights Operator 存档,以便从受限网络中诊断问题。

要在受限网络中使用 Insights Operator,您必须:

  • 创建 Insights Operator 归档的副本。
  • 将 Insights Operator 存档上传到 console.redhat.com

4.6.1. 复制 Insights Operator 存档

您必须创建 Insights Operator 数据存储的副本,以上传到 cloud.redhat.com

先决条件

  • cluster-admin 用户身份登录 OpenShift Container Platform。

流程

  1. 查找当前运行的 Insights Operator pod 的名称:

    $ INSIGHTS_OPERATOR_POD=$(oc get pods --namespace=openshift-insights -o custom-columns=:metadata.name --no-headers  --field-selector=status.phase=Running)
  2. 从 Insights Operator 容器复制最近的数据存档:

    $ oc cp openshift-insights/$INSIGHTS_OPERATOR_POD:/var/lib/insights-operator ./insights-data

Insights Operator 最近存档可在 insights-data 目录中找到。