Interview Prep/Networking/Kubernetes & Service Networking in Production

How do you scale CoreDNS and avoid DNS becoming an outage source?

AdvancedProductionKubernetes & Service Networking in Production
Answer

Run at least 2 replicas spread across nodes and zones with a PodDisruptionBudget, autoscale proportional to cluster size (cluster-proportional-autoscaler), enable NodeLocal DNSCache, tune cache and forward with multiple upstreams, set resource requests, and monitor coredns_dns_request_duration_seconds and coredns_forward_healthcheck_failures_total.

DNS storms come from ndots, retries and unnecessary lookups; fix at the client with connection reuse and caching.

All Networking questions Roadmap: Networking for DevOps

More on Kubernetes & Service Networking in Production