Image OKD/OpenShift从不同注册表导入映像错误
当我尝试导入图像时,出现证书错误Image OKD/OpenShift从不同注册表导入映像错误,image,ssl,kubernetes,openshift,okd,Image,Ssl,Kubernetes,Openshift,Okd,当我尝试导入图像时,出现证书错误 $ oc import-image k8s.gcr.io/redis:e2e --confirm error: tag e2e failed: Internal error occurred: k8s.gcr.io/redis:e2e: Get "https://k8s.gcr.io/v2/": x509: certificate is valid for *.example.com, example.com, not k8s.gcr.i
$ oc import-image k8s.gcr.io/redis:e2e --confirm
error: tag e2e failed: Internal error occurred: k8s.gcr.io/redis:e2e: Get "https://k8s.gcr.io/v2/": x509: certificate is valid for *.example.com, example.com, not k8s.gcr.io
imagestream.image.openshift.io/redis imported with errors
Name: redis
Namespace: batur
Created: 2 hours ago
Labels: <none>
Annotations: openshift.io/image.dockerRepositoryCheck=2021-05-02T18:05:08Z
Image Repository: image-registry.openshift-image-registry.svc:5000/batur/redis
Image Lookup: local=false
Unique Images: 0
Tags: 1
e2e
tagged from k8s.gcr.io/redis:e2e
! error: Import failed (InternalError): Internal error occurred: k8s.gcr.io/redis:e2e: Get "https://k8s.gcr.io/v2/": x509: certificate is valid for *.example.com, example.com, not k8s.gcr.io
2 hours ago
$oc导入映像k8s.gcr.io/redis:e2e--确认
错误:标记e2e失败:发生内部错误:k8s.gcr.io/redis:e2e:Get“https://k8s.gcr.io/v2/:x509:证书对*.example.com、example.com有效,而不是对k8s.gcr.io有效
imagestream.image.openshift.io/redis导入时出错
姓名:redis
名称空间:batur
创建时间:2小时前
标签:
注释:openshift.io/image.dockerRepositoryCheck=2021-05-02T18:05:08Z
图像存储库:图像注册表.openshift图像注册表.svc:5000/batur/redis
图像查找:local=false
唯一图像:0
标签:1
e2e
标记自k8s.gcr.io/redis:e2e
! 错误:导入失败(内部错误):发生内部错误:k8s.gcr.io/redis:e2e:Get“https://k8s.gcr.io/v2/:x509:证书对*.example.com、example.com有效,而不是对k8s.gcr.io有效
2小时前
注意:“example.com”是我的基本域。我的API域是“API.okd.example.com”Hi,它应该信任
k8s.gcr.io
的证书,但是您可以尝试使用flag--unsecure=true