Skip to main content
InterviewHubPRO
Section Overview
Q18

Question 18 of 50

Part 2: Core Architecture & Implementation (Mid-Level)

36%
Kubernetes (K8s) (50 Qs)•Part 2: Core Architecture & Implementation (Mid-Level)

Kubernetes Networking Model & CNI: Calico vs. Cilium (eBPF).

senior LevelMost AskedKubernetesSystem Design

In Simple Words: The fundamental rule of Kubernetes networking: Every Pod gets its own unique IP address, and all Pods can communicate with all other Pods without NAT. A Container Network Interface (CNI) plugin implements this model:

  • Calico: Uses standard Linux iptables and BGP routing to manage Pod routing and NetworkPolicies. At high scale (thousands of Pods and services), millions of iptables rules create sequential packet inspection CPU overhead.
  • Cilium (Modern Standard):
    • Built natively on Linux eBPF (Extended Berkeley Packet Filter).
    • Injects bytecode directly into the Linux kernel socket layer, bypassing iptables entirely.
    • Delivers $\mathcal{O}(1)$ routing lookup speeds, built-in L7 API security, transparent mTLS, and real-time network observability via Hubble.