Unable to resolve github.com from OpenShift origin pods

独自空忆成欢 提交于 2019-12-10 17:47:27

问题


I have a basic OpenShift origin cluster started with oc cluster up

Now, in the default 'MyProject' i wanted to build a source from git repo and it's failing with the error Could not resolve host: github.com; Name or service not known

Even I tried setting up gogs and migrate the public hosted source code on github.com to gogs pod but throwing same error.

Kindly advise if there are any additional network settings required during OpenShift cluster setup in order to access github.com or any other public domains. I can sense it's a network issue but not sure what exactly needs to be configured on the cluster.


回答1:


I know this is an old ticket, but I came across this issue when looking for a solution for my problem. I had exactly the same problem as described in this issue. For me, the problem lies within the combination between Ubuntu 18.04 and docker. I followed solution B from this answer.
Hopefully this helps someone as I've lost a lot of time trying to resolve this issue by looking for the problem as if it was a problem from openshift/okd while the actual cause lies within the combination between docker and ubuntu (at least for me).



来源:https://stackoverflow.com/questions/41526628/unable-to-resolve-github-com-from-openshift-origin-pods

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!