Skip to content
$ lynuxpro
← All system designs

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 →

Data storeServiceInfrastructureasync / background

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

  1. A fleet repository holds base manifests plus overlays per environment and region (Kustomize or Helm values).
  2. 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".
  3. Clusters are registered with labels (env, region, tier, wave). A new cluster only needs the right labels to get everything.
  4. Rollouts move in waves: change the version for wave 0 (dev), watch health, then promote to later waves by updating Git.
  5. Argo CD reports sync and health status for every cluster; alerts fire on drift or failed syncs.

Key decisions

DecisionChoiceWhy
Hub vs per-cluster Argo CDhub per regionone view, smaller blast radius than one global hub
Config layoutbase + overlays, versions pinned per waveclear, reviewable promotion
PromotionGit pull requests (can be automated)audit trail and easy rollback with git revert
SecretsExternal Secrets per clusterno 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

ItemAssumptionResult
Fleet100 clusters × 60 add-ons/apps~6,000 Argo CD Applications
Controller shardsload-test your own setupsplit clusters across several application controller shards
Git pollingevery 3 minutes, or webhooksuse webhooks to cut load and sync faster

High availability and disaster recovery

TargetNumberHow it is met
Hub availability99.9%Argo CD in HA mode: several repo servers, Redis HA, sharded controllers
Hub downno runtime impactclusters keep running what they have; only new changes wait
Hub lostRTO 30 min, RPO 0Argo CD's own config is in Git; reinstall and it re-syncs
Bad changereaches 1 cluster firstwaves: 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.