8.2.4. 将更新程序捆绑包导入到断开连接的 OpenShift Container Platform 集群中
要将漏洞数据库更新导入到断开连接的 OpenShift Container Platform 集群中,您可以使用 clairctl 工具和 Clair 配置文件来导入更新程序捆绑包。这会使用漏洞数据填充 Clair 数据库,以便 Clair 可以在没有互联网访问的情况下扫描镜像。
先决条件
-
您已安装了
clairctl命令行工具工具。 - 您已部署了 Clair。
-
disable_updaters和airgap参数在 Clairconfig.yaml文件中被设置为True。 - 您已从可访问互联网的 Clair 实例导出了更新程序捆绑包。
- 您已将更新程序捆绑包传送到断开连接的环境中。
流程
使用
clairctlCLI 工具将更新程序捆绑包导入到 OpenShift Container Platform 部署的 Clair 数据库中:$ ./clairctl --config ./clair-config.yaml import-updaters updates.gz