System design · 14 of 16
Mid
Senior
- Monitoring and alerting for 100 servicesSRE · Platform · DevOps
- Secrets management platformDevOps · Platform · SRE
- Multi-region active-active serviceSRE · Platform
- Distributed job scheduler (cron at scale)SRE · Platform
- Internal developer platform (IDP)Platform
- Multi-tenant Kubernetes platformPlatform · DevOps · SRE
- GitOps for a fleet of 100 clustersPlatform · DevOps
- ML training platform and feature storeMLOps · Platform
- LLM inference platformMLOps · Platform · SRE
SENIOR · 12 MIN · PLATFORM · DEVOPS
GitOps for a fleet of 100 clusters
One repo, a hub Argo CD with ApplicationSets, cluster labels for targeting, rollout waves and fleet-wide health.
- Peak load
- 100 clusters, 6,000 apps
- Availability target
- 99.9% (hub)
- RTO: back up within
- 30 min
- RPO: data you can lose
- 0 (Git)
← Swipe sideways to see the whole diagram →
The question
"We run 100 Kubernetes clusters across regions and environments. Design how platform add-ons (ingress, monitoring, policies) and apps are deployed and kept consistent."
Requirements
- Every cluster gets the right add-ons and versions automatically, including new clusters.
- Changes roll out gradually: dev first, then staging, then production in waves.
- Drift (manual changes) is detected and fixed.
- One place to see what is running where.
How it works
- A fleet repository holds base manifests plus overlays per environment and region (Kustomize or Helm values).
- A hub Argo CD (or one Argo CD per region) uses ApplicationSets with a cluster generator: "for every cluster labelled
env=prod, deploy these add-ons". - Clusters are registered with labels (
env,region,tier,wave). A new cluster only needs the right labels to get everything. - Rollouts move in waves: change the version for wave 0 (dev), watch health, then promote to later waves by updating Git.
- Argo CD reports sync and health status for every cluster; alerts fire on drift or failed syncs.
Key decisions
| Decision | Choice | Why |
|---|---|---|
| Hub vs per-cluster Argo CD | hub per region | one view, smaller blast radius than one global hub |
| Config layout | base + overlays, versions pinned per wave | clear, reviewable promotion |
| Promotion | Git pull requests (can be automated) | audit trail and easy rollback with git revert |
| Secrets | External Secrets per cluster | no secrets in Git |
What breaks and how it heals
- Bad change in Git: it only reaches wave 0 first; revert the commit to roll back.
- Hub Argo CD down: clusters keep running what they have; nothing new deploys until it is back.
- Too many clusters for one Argo CD: shard controllers or split hubs by region.
Load and capacity
| Item | Assumption | Result |
|---|---|---|
| Fleet | 100 clusters × 60 add-ons/apps | ~6,000 Argo CD Applications |
| Controller shards | load-test your own setup | split clusters across several application controller shards |
| Git polling | every 3 minutes, or webhooks | use webhooks to cut load and sync faster |
High availability and disaster recovery
| Target | Number | How it is met |
|---|---|---|
| Hub availability | 99.9% | Argo CD in HA mode: several repo servers, Redis HA, sharded controllers |
| Hub down | no runtime impact | clusters keep running what they have; only new changes wait |
| Hub lost | RTO 30 min, RPO 0 | Argo CD's own config is in Git; reinstall and it re-syncs |
| Bad change | reaches 1 cluster first | waves: 1 cluster → 5% → 25% → 100% with a 30-minute bake time each, ~2 hours for the fleet |
What interviewers listen for
- Pull-based GitOps and why it scales safely.
- Label-driven targeting and waves for gradual rollout.
- Drift detection, rollback and blast-radius thinking.