Interview Prep/Azure/Network Connectivity Errors

Pods resolve external names slowly and some lookups fail with `i/o timeout`.

AdvancedTroubleshootingNetwork Connectivity Errors
Answer

Likely causes → CoreDNS overloaded or throttled, conntrack race on UDP DNS, custom VNet DNS servers slow/unreachable, or ndots:5 causing many search-domain lookups.

Diagnose →

kubectl -n kube-system top pods -l k8s-app=kube-dns
kubectl -n kube-system logs -l k8s-app=kube-dns --tail 50
kubectl run dnstest --rm -it --image=busybox:1.36 -- nslookup api.github.com

Fix →

  1. Scale CoreDNS (autoscaler config in coredns-autoscaler configmap) or enable NodeLocal DNSCache-style caching where supported
  2. Set dnsConfig.options: ndots: "2" for apps calling many external names
  3. Fix custom DNS server reachability or forwarders

Prevent → Monitor CoreDNS latency and errors in Prometheus.

Azure All Azure questions Roadmap: Azure core services

More on Network Connectivity Errors