-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
If you try to use image: 'docker-registry.default.svc:5000/mynamespace/myimage' in a pod spec, you'll get errors such as:
Failed to pull image "docker-registry.default.svc:5000/mynamespace/myimage": rpc error: code = 2 desc = Get https://docker-registry.default.svc:5000/v1/_ping: dial tcp: lookup docker-registry.default.svc: no such host
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)
schemen, bartsmykla, geoand, srang, garethahealy and 1 more
Metadata
Metadata
Assignees
Labels
No labels