Slow performance during image push or pull due to extra DNS query for openshift default registry

Solution In Progress - Updated -

Environment

  • Openshift Container Platform 3.6

Issue

  • slow performance during image push or pull
  • got the below error during s2i build.
Failed to pull image "docker-registry.default.svc:5000/...": rpc error: code = 2 desc = net/http: request canceled

Resolution

  • You can set the configuration in /etc/sysconfig/atomic-openshift-master.
OPENSHIFT_DEFAULT_REGISTRY=docker-registry.default.svc:5000 
  • You can set server=/default.svc/ in /etc/dnsmasq.d as a workaround according to BZ 1506418
ex)
# echo 'server=/default.svc/' > /etc/dnsmasq.d/node-dnsmasq2.conf

Root Cause

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.