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.7.18.15.3. 禁用容器镜像仓库的 TLS,以用作不安全的容器镜像仓库
您可以通过将容器镜像仓库添加到 cdi-insecure-registries 配置映射来禁用容器镜像仓库的 TLS(传输层安全)。
先决条件
-
以具有
cluster-admin角色的用户身份登录集群。
流程
将 registry 添加到
openshift配置映射中。-cnv 命名空间中的 cdi-insecure-registriesoc patch configmap cdi-insecure-registries -n openshift-cnv \ --type merge -p '{"data":{"mykey": "<insecure-registry-host>:5000"}}'$ oc patch configmap cdi-insecure-registries -n openshift-cnv \ --type merge -p '{"data":{"mykey": "<insecure-registry-host>:5000"}}'1 Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 1
- 将
<insecure-registry-host>替换为容器镜像仓库的主机名。