Skip to main content
InterviewHubPRO
Section Overview
Q38

Question 38 of 50

Part 3: Advanced Internals, Scale & Production Security (Senior / Lead)

76%
Kubernetes (K8s) (50 Qs)•Part 3: Advanced Internals, Scale & Production Security (Senior / Lead)

Autoscaling with Cluster Proportional Autoscaler and NodeLocal DNSCache.

senior LevelMost AskedSecurity & AuthSystem Design

In Simple Words: Core infrastructure services like CoreDNS can become severe performance bottlenecks as cluster node counts grow from 5 to 500:

  • Cluster Proportional Autoscaler (CPA): Automatically scales CoreDNS replica counts proportionally based on the total number of worker nodes and CPU cores in the cluster.
  • NodeLocal DNSCache:
    • Runs a lightweight DNS cache as a DaemonSet on every worker node on IP 169.254.20.10.
    • Pods query their local node agent over loopback instead of querying centralized CoreDNS over the cluster network.
    • Drops DNS resolution latency from $15\text{ms}$ to $<1\text{ms}$ and avoids Linux conntrack race conditions.