Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/image/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Image OKD/OpenShift从不同注册表导入映像错误_Image_Ssl_Kubernetes_Openshift_Okd - Fatal编程技术网

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