Stage 7, Part 4 of 9, Kubernetes Networking Deep Dive

Text

PART 4: CAPACITY PLANNING & COST MODELING

20. CNI Performance and Overhead Modeling

CNI Overhead by Type

CNICPU per NodeMemory per NodeThroughput
FlannelLowLowGood
Calico (iptables)MediumMediumExcellent
Calico (eBPF)LowMediumExcellent
CiliumLowMediumBest
AWS VPC CNILowMediumExcellent

Pod IP Capacity

Modem5.largem5.xlargem5.4xlarge
Secondary IP2958234
Prefix Delegation110220880

CNI Selection Criteria

FactorWeight
PerformanceHigh
Policy featuresHigh
ObservabilityMedium
Operational complexityMedium
Cloud integrationHigh

21. Ingress Controller Capacity Planning

Throughput per Replica

ControllerRPS per ReplicaCPU per 10K RPS
NGINX20,0002 cores
Traefik19,0002 cores
HAProxy100,000+2 cores
Envoy18,5002 cores

Sizing Formula

text
Replicas = (Peak RPS / RPS per replica) × 1.5 (headroom)

Example: 200,000 peak RPS with NGINX
Replicas = (200,000 / 20,000) × 1.5 = 15 replicas

22. SLA & Availability Design

Availability Math

text
99.9%   = 8.76 hours downtime/year
99.99%  = 52.56 minutes downtime/year
99.999% = 5.26 minutes downtime/year

Networking SLA Design

TargetArchitecture
99.9%Basic CNI, CoreDNS 2 replicas
99.99%HA CNI, NodeLocal DNSCache, HA Ingress
99.999%Cilium, kube-proxy replacement, multi-cluster

1:1 copy of the class Google Doc, code in code blocks.