How do you reduce DNS load and latency in Kubernetes clusters?
IntermediateProductionDNS & Traffic Management in Production
Answer
Run NodeLocal DNSCache so pods query a link-local cache on the node (avoiding conntrack and cross-node hops), scale CoreDNS with replicas proportional to nodes (cluster-proportional-autoscaler), tune ndots, use FQDNs with trailing dots for external calls, and raise CoreDNS cache TTLs.
Typical symptoms that justify it: i/o timeout on lookups under load and conntrack insert failures on UDP 53.
More on DNS & Traffic Management in Production
What TTL values do you choose for production records?BeginnerHow would you design DNS for high availability?AdvancedHow do you manage DNS as code?BeginnerHow do you do a zero-downtime DNS cutover?IntermediateWhy does DNS failover take longer than expected, and how do you make it faster?AdvancedHow do Route 53 health checks work and what are their pitfalls?Intermediate