-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't use docker-registry.default.svc in pod spec #222
Comments
Is it fixed ? @LalatenduMohanty |
We have not specifically taken any action on this...
Can you test this?
…On Fri, Jun 29, 2018 at 1:27 PM, Charles Moulliard ***@***.*** > wrote:
Is it fixed ? @LalatenduMohanty <https://github.com/LalatenduMohanty>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#222 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAHZqPUQTHtbZNG5g8r6iZrFyL7AUIaks5uBbqpgaJpZM4SUBma>
.
--
Gerard Braad | http://gbraad.nl
[ Doing Open Source Matters ]
|
I can reproduce it locally using this config
where the image of the DeploymentConfig is defined as such
Error
|
I am having the same problem with 3.10 (installed via openshift-ansible)
I am no expert on networking but since the DNS only resolves cluster.local and my custom domain vnet.de, just having docker-registry.default.svc probably resolves to an unreachable network. EDIT: |
If you try to use
image: 'docker-registry.default.svc:5000/mynamespace/myimage'
in a pod spec, you'll get errors such as:This is happening because docker itself uses the host's DNS configuration, which isn't using the kubernetes DNS service.
My own thoughts: It seems like the way to fix this is to ensure the centos image is using dnsmasq (which it currently is not), reroute the
cluster.local
domain to the kubernetes DNS service, and add the domain to the search list as well.(ref: openshift/origin#16097)
The text was updated successfully, but these errors were encountered: