What is the maximum number of search domains that can be used in OpenShift 4.x?
Issue
- Error message shown in /etc/resolv.conf on pods:
Search Line limits were exceeded, some search paths have been omitted, the applied search line is: <namespace>.svc.cluster.local svc.cluster.local cluster.local mycluster.my.domain.com my.domain.com domain.com
- Need more than 6 domains in the /etc/resolv.conf search list.
- Only the first 6 domains in the search path are looked up by the resolver.
- Only first 3 custom search domains are observed by pods on OpenShift
Environment
- Red Hat OpenShift Container Platform (OCP) 4.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.