7.6. 在自动化控制器镜像配置中添加允许的 registry
在自动化 hub 中部署容器镜像前,您必须将 registry 添加到自动化控制器镜像配置中的 allowedRegistries
中。要做到这一点,您可以将以下代码复制并粘贴到自动化控制器镜像 YAML 中。
流程
- 登录到 Red Hat OpenShift Container Platform。
-
导航到
。 - 选择 Resources 下拉列表,并键入 "Image"。
- 选择 Image (config,openshift.io/v1)。
- 在 Name 标题下点 。
- 选择 选项卡。
粘贴 spec 值下的以下内容:
spec: registrySources: allowedRegistries: - quay.io - registry.redhat.io - image-registry.openshift-image-registry.svc:5000 - <OCP route for your automation hub>
- 点击 。