CoreDNS intermittently fails to resolve cluster services during node scale-up Networking
Cluster autoscaler adds nodes during our morning ramp and for about 30-60 seconds afterwards we get a burst of resolution failures for in-cluster service names, mostly from pods that were just scheduled onto the new nodes. It clears on its own. CoreDNS is at two replicas, cluster is around 60 nodes at peak. Errors are name resolution timeouts rather than NXDOMAIN.
@idempotent_ian · 5mo ago · 2 replies
Also look at ndots. The default
ndots:5means any name with fewer than five dots gets tried against every search domain first, so resolvingapi.example.comfrom a pod can be five queries before the one that works. During a burst that multiplies your query volume for no benefit. Using fully qualified names with a trailing dot for external hosts, or lowering ndots in dnsConfig, cuts the load substantially.Reply
Report
@csv_apologist · 5mo ago
Be a bit careful lowering ndots globally — short in-cluster names like
postgresrely on the search path. Setting it per workload is safer than cluster-wide.Reply
Report