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
| CNI | CPU per Node | Memory per Node | Throughput |
| Flannel | Low | Low | Good |
| Calico (iptables) | Medium | Medium | Excellent |
| Calico (eBPF) | Low | Medium | Excellent |
| Cilium | Low | Medium | Best |
| AWS VPC CNI | Low | Medium | Excellent |
Pod IP Capacity
| Mode | m5.large | m5.xlarge | m5.4xlarge |
| Secondary IP | 29 | 58 | 234 |
| Prefix Delegation | 110 | 220 | 880 |
CNI Selection Criteria
| Factor | Weight |
| Performance | High |
| Policy features | High |
| Observability | Medium |
| Operational complexity | Medium |
| Cloud integration | High |
21. Ingress Controller Capacity Planning
Throughput per Replica
| Controller | RPS per Replica | CPU per 10K RPS |
| NGINX | 20,000 | 2 cores |
| Traefik | 19,000 | 2 cores |
| HAProxy | 100,000+ | 2 cores |
| Envoy | 18,500 | 2 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
| Target | Architecture |
| 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.