Stage 9, Part 4 of 9, Cluster Extensibility (CRDs, Controllers, Operators)
Text
PART 4: CAPACITY PLANNING & COST MODELING
17. Operator Resource Overhead
Typical Operator Resource Usage
| Component | CPU Request | Memory Request | Replicas |
| controller-runtime | 100m | 128Mi | 1-3 |
| Webhook server | 100m | 128Mi | 3 (HA) |
| Prometheus Operator | 200m | 256Mi | 1 |
| cert-manager | 100m | 128Mi | 1 |
Sizing Formula
text
Operator CPU = (Reconcile rate × Reconcile cost) × Replicas
Operator Memory = (Cache size × Object count) + Code overhead
Example:
- 1,000 CRs
- 50 KB per CR in cache
- Memory = 1,000 × 50 KB + 128 MB = 178 MB
Webhook Capacity
| Webhook Type | Latency | Throughput |
| ValidatingAdmissionPolicy (CEL) | <1ms | Unlimited |
| Simple validating webhook | 5-20ms | ~500/s |
| Complex webhook | 50-200ms | ~50/s |
| Image verification | 100-500ms | ~20/s |
18. CRD Storage Impact on etcd
CRD Storage Considerations
| Factor | Impact |
| CR count | More objects = more storage |
| CR size | Status updates increase size |
| Version count | More versions = more storage |
| Update frequency | More writes = more etcd load |
etcd Capacity Planning
| CR Count | CR Size | Estimated Storage |
| 100 | 10 KB | 1 MB |
| 1,000 | 10 KB | 10 MB |
| 10,000 | 10 KB | 100 MB |
| 100,000 | 10 KB | 1 GB |
Production rule: Keep total etcd size under 2 GB. For large CR counts, consider aggregation or sharding.
19. 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
Operator SLA Design
| Target | Architecture |
| 99.9% | Single operator replica |
| 99.99% | 2+ replicas, leader election, HA webhooks |
| 99.999% | Above + chaos testing, multi-cluster |
Webhook HA Requirements
| Requirement | Why |
| 3+ replicas | Survive zone failure |
| PodDisruptionBudget | Prevent all replicas down |
| Pod anti-affinity | Spread across nodes |
| Service with local traffic | Reduce latency |
1:1 copy of the class Google Doc, code in code blocks.