Interview Prep/Networking/DNS & Traffic Management in Production

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.

All Networking questions Roadmap: Networking for DevOps

More on DNS & Traffic Management in Production