无法对 *apps.DeploymentConfig 类型的对象应用映像策略:没有可用于此对象的映像列表

问题描述 投票:0回答:1

每次我尝试从存储库在 OpenShift Developer Sandbox 中创建 DeploymentConfig 时:

https://github.com/GoncaloTMelo/os-training-devs/blob/master/vote-application/mysql/DeploymentConfig.yaml

我收到以下错误:

这是否意味着该特定图像在 OpenShift 中不可用: image-registry.openshift-image-registry.svc:5000/openshift/mysql:8.0-el8

如果是这样,我知道 registry.redhat.io 需要身份验证才能访问图像,如何使用 OpenShift 注册表中提供的图像?

https://catalog.redhat.com/software/containers/search?gs&q=mysql

非常感谢您的帮助!

openshift
1个回答
0
投票

基本上,您需要在安装 OpenShift 4.x 集群之前获取 Pull Secret(注册表令牌)。 如果在 openshift 项目上创建 ImageStream,则可能不需要额外的身份验证即可访问

registry.redhat.io
。但是,如果您在其他没有 Red Hat 注册表的 Pull Secret 的项目上创建 ImageStream,则需要进行身份验证才能访问 Red Hat 注册表。

这是我读过的文件。

https://docs.openshift.com/container-platform/4.13/openshift_images/managing_images/using-image-pull-secrets.html

© www.soinside.com 2019 - 2024. All rights reserved.