在企业代理之后,OpenShift导入图像失败

时间:2018-12-28 00:19:46

标签: kubernetes openshift docker-registry

我跑步时

>>> '{:{}>{}}'.format('test','.','10')
'......test'

我得到了

oc import-image centos:7 --confirm true

在我生命中,我找不到The import completed with errors. Name: centos Namespace: pd-kube-ci Created: Less than a second ago Labels: <none> Annotations: openshift.io/image.dockerRepositoryCheck=2018-12-27T21:00:26Z Docker Pull Spec: docker-registry.default.svc:5000/pd-kube-ci/centos Image Lookup: local=false Unique Images: 0 Tags: 1 7 tagged from centos:7 ! error: Import failed (InternalError): Internal error occurred: Get https://registry-1.docker.io/v2/: proxyconnect tcp: EOF Less than a second ago error: tag 7 failed: Internal error occurred: Get https://registry-1.docker.io/v2/: proxyconnect tcp: EOF 的来源。在OpenShift / Kubernetes源代码中的任何地方都找不到它。 Google对此一无所知。

我还验证了我可以从每个节点(包括主节点和基础节点)进行proxyconnect tcp: EOF。仅当openshift尝试提取该图像时。

有什么想法吗?

1 个答案:

答案 0 :(得分:1)

结果证明这是我们openshift_https_proxy ansible var中的错误配置。具体来说,我们有:

openshift_https_proxy=https://proxy.mycompany.com:8443

我们应该有

openshift_https_proxy=http://proxy.mycompany.com:8443

要解决此问题,我们必须在主服务器上编辑/etc/origin/master/master.env,在所有节点上编辑/etc/sysconfig/docker,然后根据Working with HTTP Proxies文档重新启动。