Slow performance during image push or pull due to extra DNS query for OpenShift default registry
Environment
- Red Hat 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
- Set the configuration in
/etc/sysconfig/atomic-openshift-master
.
# OPENSHIFT_DEFAULT_REGISTRY=docker-registry.default.svc:5000
- Set
server=/default.svc/
in/etc/dnsmasq.d
as a workaround according to BZ 1506418
# 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.
Comments