DevopsAdvanced

GitOps at Scale: Multi-Cluster Promotion and Drift

DeveloperHat Team
21 min read

TL;DR

Argo CD 3.6 and Flux 2.10 at fleet scale: promotion flows, ApplicationSets for dozens of clusters, and drift detection that works.

GitOps on one cluster is a solved problem: an agent watches Git, applies the difference, and the cluster converges. GitOps on thirty clusters is a different problem, and it is the one most teams actually have — dev, staging, and production, then a second region, then a cluster per tenant, then a fleet nobody can hold in their head. The failure modes change completely. It is no longer "did the deploy apply" but "did the deploy apply to the right clusters, in the right order, and is anything drifting that nobody noticed?"

The tooling has caught up with the problem. Argo CD 3.6.2 (18 November 2026, with 3.6.0 generally available on 3 November) is explicitly a scale release: a global Resources Explorer, faster lists for large installations, optional compression of cached manifests, and metrics and reconciliation annotations for ApplicationSet progressive sync. Flux 2.10.1 (20 November 2026; 2.10.0 on 26 October) brings SPIFFE workload identity for inter-controller communication and promotes its alerting APIs to stable v1. Both run on Kubernetes 1.35–1.37. This article is about what to do with them once the fleet outgrows a single Application per environment.

The short version up front: keep one Git repository as the source of truth, promote a change through environments with an explicit gate rather than a copy, generate per-cluster Applications from an ApplicationSet (or the Flux equivalent) instead of hand-writing them, and treat drift detection as a monitored signal with an owner — not a dashboard nobody opens. The sections below give you the repo layout, the promotion models, the manifests, and the failure modes.

One commit, every cluster — promotion is a gate, not a copy GIT Source of truth apps + env overlays PROMOTION Gate + sync wave dev → staging → prod FAN-OUT ApplicationSet cluster generator dev cluster auto-sync · self-heal staging cluster auto-sync · gated prod cluster × N manual gate · pruned The promotion gate decides when a change moves; the ApplicationSet decides where it lands.

Why GitOps breaks at scale

Four things that are harmless at one cluster become the incident at thirty.

Repo sprawl. The single-cluster pattern is usually one repository with a base and per-environment overlays. At fleet scale that repository grows a folder per cluster, each with its own overlay, and every change touches a merge conflict in a file the author has never seen. Or the opposite happens: one repository per cluster, and a security patch becomes thirty pull requests, twenty-nine of which get merged sometime next week. Either way the "single source of truth" stops being single.

Promotion by copy-paste. With no promotion mechanism, moving a release from staging to production means copying an image tag from one folder to another — by hand, in a pull request, at 5 p.m. on a Friday. The copy is where the drift starts: the tag gets copied but the config change does not, or the other way round, and production ends up running a combination that was never tested anywhere.

Drift nobody sees. A single Argo CD Application shows its sync status in one UI. Thirty clusters mean dozens of Applications, and the one that went OutOfSync three days ago is buried under the ones that are fine. Manual fixes compound it: an engineer with cluster access hotfixes production, the agent is configured to self-heal, and the fix gets reverted on the next sync — or the agent is not configured to self-heal, and the hotfix lives outside Git until the next deploy silently reverts it and the incident comes back.

Controller overload. One Argo CD instance watching every cluster's worth of resources is a scaling problem of its own: the controller's cache and the API server's watch load grow with the fleet, and the UI slows down exactly when you need it during an incident. This is the problem Argo CD 3.6's performance work targets — faster lists, compressed manifest caches, and a global Resources Explorer — but it is a problem you plan for, not one you discover.

Repo structure: the decision that breaks first

Everything downstream — promotion, drift, access control — is easier or harder depending on where the manifests live. There are three shapes, and the choice is the first Architecture Decision in this article's box at the end.

LayoutHow it worksBest forWhat breaks
Mono-repoOne repo: base manifests plus an overlay folder per environment and clusterTeams under ~20 clusters who want one review queue and one historyMerge conflicts in shared files; blast radius of a bad merge is the whole fleet; access control is per-path, which Git does poorly
Repo per environmentSeparate repos for dev, staging, prod; promotion is a merge or a cherry-pick between reposRegulated teams that need a hard boundary between environmentsPromotion tooling has to move changes between repos; config drift between repos is invisible until it bites
App-of-appsA small "root" Application in each cluster whose only job is to create the other Applications from a Git pathFleets that want each cluster to self-assemble from one pointerThe root Application is a single point of failure for bootstrapping; debugging "why did this app appear" means tracing two levels of indirection

For most fleets the mono-repo with per-cluster overlays is the right start, with the app-of-apps pattern on top of it: one repository holds everything, and each cluster bootstraps from a root Application that points at its own folder. The repo-per-environment layout earns its keep only when a real compliance boundary demands it — when staging and production must not share a history, not merely when they feel different. Do not split repositories to solve a review problem; use CODEOWNERS and protected paths for that.

One rule that holds in every layout: never let a human edit a cluster's manifests by hand and never let CI push directly into a cluster. CI's job is to update Git (usually an image tag). The agent's job is to pull from Git. The moment a pipeline gets cluster credentials, you have rebuilt the push model GitOps was supposed to replace, and you have given every CI compromise a direct line into production.

Promotion models: pull, push, and the gate

Promotion is the question of how a change travels from dev to staging to production. There are three models, and the honest answer is that most fleets use two of them at once.

Pull-based promotion with progressive sync (Argo CD). The ApplicationSet generates one Application per cluster, and a sync wave or progressive-sync strategy rolls the change through them in order: dev first, then staging, then a gated step into production. Argo CD 3.6 added metrics and reconciliation annotations to ApplicationSet progressive sync, which matters because the previous failure mode was a rollout that stalled silently — now you can alert on a step that has not advanced. The promotion itself is a commit that changes which version the next environment tracks, and the gate is a human approving that commit or a sync window that only opens during business hours.

Image automation (Flux, and Argo CD Image Updater). Flux's image-reflector and image-automation controllers watch a container registry and commit a new image tag to Git when one appears; Argo CD Image Updater does the same from the Argo side. This is promotion by automation: dev always runs the latest image, and the commit that moves staging to it is generated, not written by hand. It is fast and it is the right answer for dev and staging. For production, pair it with a gate — the automation opens the pull request, a human merges it — or you have automated away the one decision that should stay human.

Manual gates and sync windows. Some changes should not flow on a timer. Production syncs behind a manual gate (an Argo CD Application with automated sync off, synced by an operator or a release pipeline) or inside a sync window (changes apply only during defined hours) are the mechanisms. They are not a failure of automation; they are the recognition that the cost of a bad production deploy is higher than the cost of waiting for a human. The mistake is applying gates everywhere: gate production, automate everything before it, and the pipeline stays fast where speed is safe.

The GitOps fleet stack, layered — each layer fails differently Git — one repo, versioned desired state, signed commits Promotion — ApplicationSet · sync waves · manual gates Delivery agent — Argo CD 3.6.2 · Flux 2.10.1 · pull + reconcile Clusters — hub + spokes · sharded controllers · cluster secrets Workloads — drift-checked · pruned · health-reported per app Git decides what should exist; the agent decides what actually does — continuously.

The comparison, head to head:

ModelSpeedControlBest for
Progressive sync (pull)Medium — rolls in wavesHigh — ordered, observable, reversible per stepMulti-cluster fleets with a real staging environment
Image automationFast — new image lands in Git within minutesLow — automation decides when, unless gatedDev and staging; production only with a human merge gate
Manual gates / sync windowsSlow — waits for a person or a windowHighest — nothing moves without a decisionProduction in regulated or revenue-critical systems

Multi-cluster with ApplicationSet

The ApplicationSet is the piece that makes a fleet manageable: instead of writing thirty Application manifests, you write one template and a generator that produces one Application per cluster. The cluster generator reads the clusters registered with Argo CD and stamps out an Application for each one that matches a label selector.

apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
  name: checkout-services
  namespace: argocd
spec:
  generators:
  - clusters:
      selector:
        matchLabels:
          env: prod
          region: us-east-1
  template:
    metadata:
      name: 'checkout-{{name}}'
    spec:
      project: default
      source:
        repoURL: https://github.com/example/platform.git
        targetRevision: HEAD
        path: 'apps/checkout/overlays/{{metadata.labels.env}}'
      destination:
        server: '{{server}}'
        namespace: checkout
      syncPolicy:
        automated:
          prune: true
          selfHeal: true
        syncOptions:
        - CreateNamespace=true

Three details in that manifest do most of the work. The cluster generator's label selector is the fleet's inventory: add a cluster with the right labels and it gets the Application automatically; remove the labels and the Application is deleted. prune: true means resources removed from Git are removed from the cluster — without it, deleted manifests leave orphaned workloads that drift forever. selfHeal: true means the agent reverts manual changes on the next reconciliation — without it, a hotfix survives until the next deploy and then vanishes without a trace.

For a controlled rollout across the fleet, add a progressive-sync strategy so the change reaches clusters in waves rather than all at once:

  strategy:
    type: RollingSync
    rollingSync:
      steps:
      - matchExpressions:
        - key: env
          operator: In
          values: [staging]
        maxUpdate: 100%
      - matchExpressions:
        - key: env
          operator: In
          values: [prod]
        maxUpdate: 25%
      - matchExpressions:
        - key: env
          operator: In
          values: [prod]
        maxUpdate: 100%

The first step takes all of staging. The second takes a quarter of production — the canary. The third takes the rest, only after the canary step is healthy. In 3.6 the progress of these steps is exposed as metrics, so the rollout's health is something you can alert on rather than something you watch in the UI.

The Flux equivalent is deliberately simpler: each cluster is bootstrapped independently with flux bootstrap, and the same Git repository is the source for all of them. There is no central ApplicationSet — the fleet is a set of clusters that happen to share a source, and per-cluster differences come from Kustomize overlays selected by the bootstrap configuration or from a per-cluster Kustomization that points at its own path. The trade-off is real: Flux gives you less central machinery to operate and no single management cluster to protect, but a fleet-wide change means touching every cluster's bootstrap configuration, and there is no built-in equivalent of progressive sync — you build the rollout order yourself, usually with a pipeline that updates clusters one at a time. For a fleet under a dozen clusters, that simplicity is a feature. Past that, the ApplicationSet's central generation starts to pay.

At the far end of scale, the management cluster itself becomes the bottleneck. Argo CD supports sharding the application controller by cluster, so one controller instance handles a subset of clusters and the load spreads out; the 3.6 performance work (faster lists, compressed manifest caches) lowers the per-cluster cost, but sharding is the mechanism that removes the ceiling. Plan for it before the controller's memory graph becomes the incident — by the time the UI is slow, you are already late.

Drift detection that actually works

Drift detection is not a feature you enable; it is a signal you operate. Both tools detect drift continuously — Argo CD compares live state against Git on every reconciliation and reports a sync status per Application; Flux's kustomize-controller does the same on its reconciliation interval and can prune resources that no longer exist in Git. The difference between teams that catch drift and teams that do not is what happens to that signal.

Make OutOfSync a paged alert, not a dashboard colour. Argo CD's Notifications controller and Flux's notification-controller (whose Event, Alert, and Provider APIs went stable in Flux 2.10) exist for exactly this: route sync failures and drift to the channel the on-call team actually reads, with the Application and cluster named in the message. A drift alert that fires to a Slack channel nobody monitors is the same as no alert. For the alerting setup itself, our Kubernetes monitoring guide covers the Prometheus and Alertmanager pieces these notifications feed into.

Decide the self-heal policy per environment, and write it down. Dev: self-heal on, prune on — the cluster is a reflection of Git, and a manual change is a mistake to correct. Staging: self-heal on, prune on, same reasoning. Production: self-heal on for most resources, but consider leaving it off for the handful of resources operators legitimately touch in an incident (a scaled-down deployment, a paused cronjob) — and if you do, require that every manual change gets a matching Git commit within the hour, tracked by the drift alert. The worst configuration is self-heal off everywhere with no process: drift accumulates silently and the next deploy reverts months of undocumented changes at once.

Watch the reconciliation interval, not just the status. A cluster whose agent stopped reconciling — expired credentials, a broken Git connection, a controller that is crash-looping — reports no drift at all, because it reports nothing. Alert on reconciliation age: if an Application has not been refreshed within its expected interval, that is an incident, even though every status light is green. This is the failure mode that takes down the fleet quietly, and it is the one the UI will not show you.

Prune deliberately. Both tools can delete resources that Git no longer describes, and both default to not doing so unless you ask. Turn pruning on, but test it first on a non-production cluster: the classic accident is a bad Git path in an Application that makes the agent conclude that everything should be deleted. The safeguard is the same as for any destructive automation — a dry run, a canary cluster, and a sync window that keeps production out of the blast radius.

The recommendation, by fleet shape

The decision falls out of fleet size and how bad a bad deploy is, not out of which tool you like more.

One to three clusters, one team — keep it boring. One Application per environment, auto-sync with self-heal, image automation for dev and staging, a manual gate for production. The ApplicationSet is machinery you do not need yet, and the mono-repo with per-environment overlays is enough structure. The thing to get right at this size is the habit: every change through Git, no cluster credentials in CI, drift alerts routed somewhere a human reads.

Four to twenty clusters, several teams — generate, and gate production. ApplicationSet with the cluster generator, progressive sync in waves, repo-per-team or per-service with CODEOWNERS on the shared paths. Flux is a fine choice here too if the team prefers its simpler model, but the rollout order has to be built in a pipeline rather than declared in the ApplicationSet. Either way, production gets a manual gate and a sync window; everything before it is automated.

Twenty-plus clusters, multiple regions, regulated — hub-spoke, sharded, audited. A management cluster (or a small set of them) runs the controllers; workload clusters hold only the agents. Controllers are sharded by cluster. Every production change is a reviewed commit, a gated sync, and an audit trail that the Git history provides for free. Secrets are sealed or pulled from a vault — never committed in plaintext, never shared between clusters. This is also the shape where the Argo CD 3.6 scale work (global Resources Explorer, faster lists) stops being a nice-to-have and starts being the difference between an operable fleet and a UI that times out during an incident.

Pick the promotion model by fleet size and risk How many clusters? and how bad is a bad deploy? 1–3 clusters one team, one region 4–20 clusters multi-env, multi-team 20+ clusters multi-region, regulated Per-env Application auto-sync, simple ApplicationSet cluster generator + waves Hub-spoke + sharding gated, audited, sharded Few clusters: keep it boring. Many clusters: generate. Regulated fleet: gate and shard.

Architecture Decision

>

Decision: Run the fleet from one mono-repo with per-cluster overlays, generate per-cluster Applications from an Argo CD ApplicationSet (cluster generator + progressive sync), gate production behind a manual sync, and alert on drift and reconciliation age.

>

Context: A platform team running a growing Kubernetes fleet — several environments, more than one region, several product teams deploying independently — that already does GitOps on a single cluster and is hitting repo sprawl, copy-paste promotion, and drift nobody sees. Argo CD 3.6.2 and Flux 2.10.1 are the current releases (November 2026).

>

Options considered: (a) ApplicationSet + mono-repo + gated production, as decided. (b) Flux per-cluster bootstrap with the same repo — simpler machinery and no management cluster to protect, but no built-in progressive sync, so fleet-wide rollouts need a pipeline to order them. (c) Repo per environment with merges between repos — a hard boundary for regulated teams, but promotion tooling has to move changes between repos and config drift between repos is invisible. (d) Keep hand-writing one Application per cluster — works to about five clusters, then the inventory is a spreadsheet and every security patch is thirty pull requests.

>

Why this one: Option (a) makes the fleet's inventory a label selector instead of a list of files, so adding a cluster is a registration, not a project. Progressive sync gives the rollout an order and a canary, and the metrics in 3.6 make a stalled rollout alertable. Gating only production keeps the pipeline fast where speed is safe and slow where it should be. Option (b) is the right answer when the fleet stays under a dozen clusters and the team prefers fewer moving parts. Option (c) wins only when a compliance boundary genuinely requires separate histories. Option (d) is a stopping point, not a design.

>

What it costs you: A management cluster to protect and keep highly available, an ApplicationSet whose template is now load-bearing infrastructure (a bad template breaks every cluster at once), and the discipline of keeping every change in Git — including the incident hotfix, which has to be committed after the fact or the next sync reverts it. Sharding and the 3.6 performance tuning are a real operations project at the top end of the scale.

>

When to reverse it: When the fleet shrinks back under a handful of clusters, drop the ApplicationSet and go back to one Application per environment — the generation machinery is not worth it at that size. When a compliance requirement forces separate histories per environment, split the repo and accept the promotion tooling cost. When the team moves to a managed GitOps offering that owns the controllers, retire the management cluster and keep the repo layout — the Git history is the asset, not the controller.

When not to use each option

Do not use the ApplicationSet for a fleet of two clusters. The template, the generator, and the progressive-sync strategy are a second system to learn and debug, and at that size one Application per environment is a dozen lines of YAML you can read in full. Generation earns its keep when the inventory changes faster than a human can edit files.

Do not use image automation for production without a gate. The automation's job is to notice a new image and open the change; the human's job is to decide whether that image goes to production now. Skipping the gate turns every upstream release — including the broken one, including the one with the CVE — into a production deploy on a timer.

Do not use self-heal in production for resources operators touch during incidents. If the runbook says "scale the deployment to zero to stop the bleeding", a self-healing agent will scale it back up on the next reconciliation, and the incident will restart itself. Either exclude those resources from self-heal or make the runbook's first step a pause of the sync — and put that step in the runbook, not in someone's head.

Do not use repo-per-environment to solve a review problem. Separate repositories are a compliance boundary, not an access-control mechanism. If the problem is "too many people can approve changes to production", the fix is CODEOWNERS and protected branches, not a second repository that now needs its own promotion pipeline.

Failure modes nobody budgets

The bad template that breaks every cluster at once. The ApplicationSet template is the most powerful file in the fleet: one wrong path or one bad label selector generates a broken Application for every cluster simultaneously. The failure mode is not one cluster down, it is all of them, and the rollback is a revert of the template — which is fast only if someone notices quickly. Test template changes against a single canary cluster first, and alert on Applications that go OutOfSync in bulk, which is the signature of a template problem rather than an application problem.

The expired cluster credential. Argo CD stores each workload cluster's credentials as a secret in the management cluster, and those credentials expire — service account tokens rotate, cloud IAM roles change, certificates lapse. When one expires, that cluster silently stops reconciling, reports nothing, and drifts. The fix is boring and essential: alert on reconciliation age per cluster, and rotate credentials on a schedule rather than on a failure.

The prune that deleted production. A wrong Git path in an Application, combined with prune enabled, tells the agent that nothing should exist — and the agent, correctly, deletes everything. The blast radius is the whole namespace. The safeguards are a dry run on a non-production cluster, a sync window that excludes production deploys outside business hours, and a policy that Application changes to production go through the same review as application changes.

The hotfix that came back. An operator fixes production by hand at 2 a.m., the fix works, the incident closes, and nobody commits it to Git. The next scheduled deploy reverts the fix, the incident reopens, and the team debugs a problem they already solved. The process fix is one line in the incident runbook: every manual change gets a Git commit before the incident is closed, and the drift alert is the backstop that catches the ones that slip through.

The controller that cannot keep up. At fleet scale the application controller's watch load and memory grow with the number of resources, and the symptom is a UI that slows down and reconciliations that lag — exactly when the fleet is changing fastest. Argo CD 3.6's performance work (faster lists, compressed manifest caches) and controller sharding are the answers, but both need to be planned before the graph turns red. If the fleet is growing, treat controller capacity the way you treat any other capacity: with a forecast, not a surprise.

Where this fits with the rest of the stack

GitOps at scale sits on top of the foundations our other guides cover. The GitOps guide is the place to start if the pull model and continuous reconciliation are new — it covers the principles, a first Argo CD and Kustomize setup, and the CI pipeline that feeds Git. GitOps tools comparison is the selection guide if the choice between Argo CD and Flux is still open, and GitOps infrastructure covers the infrastructure-as-code side of the same model. For the managed side, AWS EKS GitOps walks through the same patterns on EKS, where the cluster credentials and the controller's availability are partly the cloud's problem. And once the fleet is running, platform engineering ROI is the guide to proving the platform — including this GitOps layer — earns its keep in DORA metrics and adoption rather than in good intentions.

The work to do this week is small: pick the single worst promotion habit in your fleet — the copied image tag, the hand-edited cluster, the drift nobody watches — and replace it with one of the mechanisms above. The fleet does not need a redesign. It needs one gate, one generator, or one alert, and then the next one.

  • GitOps: Infrastructure as Code with Git-Centric Workflows
  • GitOps Tools Comparison: A Comprehensive Guide
  • GitOps Infrastructure
  • AWS EKS GitOps
  • Platform Engineering ROI: DORA, Adoption, and Proving the IDP Earns Its Keep
  • Why This Matters

    Understanding the business and technical context helps you make informed decisions rather than blindly following patterns.

    Trade-offs to Consider

    Every architectural decision involves trade-offs. Consider your specific requirements, team expertise, and scale when evaluating options.

    When NOT to Use This

    Knowing when a solution doesn't apply is as valuable as knowing when it does. Consider alternatives for your specific situation.

    Decision Framework

    Use this framework to evaluate whether this approach is right for your use case based on your specific constraints and requirements.

    Share this articleShare on XShare on LinkedIn

    Keep the decision frameworks coming

    One practical architecture guide a week — patterns, trade-offs, and when not to use them. No spam, unsubscribe anytime.