Rendering Helm and Kustomize: in the controller or before commit
A decision that shapes every GitOps setup is where templates become plain Kubernetes manifests. Argo CD and Flux can render Helm charts and Kustomize overlays inside the controller. The alternative, often called the rendered manifests pattern, renders them in CI and commits the final YAML to an environment branch or directory, so the controller only applies plain files.
| Approach | Strengths | Trade-offs |
| Render in the controller | Simple repository, small diffs, standard Helm and Kustomize workflows | Reviewers cannot see the final manifests in the pull request; a chart version bump can change many resources unnoticed |
| Render in CI and commit output | Every pull request shows exactly what will change in the cluster; no templating inside the cluster | More files in Git, a CI step to maintain, generated files must never be edited by hand |
For small estates, controller rendering is fine, especially with a CI job that posts a rendered diff on each pull request. For regulated or high-change environments, committing rendered output gives reviewers and auditors a precise record of what ran.
Bootstrapping and recovering the GitOps controller itself
GitOps manages everything except, at first, itself. We define the bootstrap explicitly so a new or rebuilt cluster can be brought to its declared state with a short, documented sequence. With Flux, flux bootstrap installs the controllers and commits their own manifests to Git so they are managed like everything else. With Argo CD, a root application (the app of apps pattern) or an ApplicationSet points at the directory holding every other application, including Argo CD's own configuration.
Ordering matters during bootstrap. Custom resource definitions must exist before the resources that use them, and operators must be running before their custom resources are applied. Argo CD sync waves and Flux Kustomization dependencies (dependsOn) express that order. We test the full bootstrap on an empty cluster as part of handover, because the day you need it is usually the day something else has already gone wrong.
Multi-tenancy: letting teams deploy without sharing the keys
When several teams share clusters, the GitOps controller becomes a powerful identity: it can usually create anything anywhere. Both tools provide ways to narrow that.
- Argo CD AppProjects restrict which repositories an application may use, which clusters and namespaces it may deploy to, and which resource kinds it may create. Cluster-scoped resources such as namespaces or CRDs stay with the platform team.
- Flux tenancy uses Kubernetes service account impersonation: each tenant's Kustomization or HelmRelease applies resources as a service account whose RBAC limits it to the tenant's namespaces.
- Single sign-on and RBAC in the Argo CD interface map identity provider groups to projects, so a developer can see and sync their own applications but not change another team's.
- Admission policies with Kyverno or OPA Gatekeeper add a second layer that applies regardless of how a resource arrived.
Operating Argo CD at scale
Argo CD works without tuning for a handful of clusters and a few hundred applications. Beyond that, a few areas need attention. The application controller can be sharded so each replica handles a subset of clusters. The repo server renders manifests and benefits from more replicas and caching when many applications share large Helm charts. Excluding high-churn resources that Argo CD does not need to track, such as some event or metrics objects, reduces load and noise. Webhooks from the Git provider replace frequent polling, so changes apply quickly without hammering the Git server.
Flux scales differently because each cluster runs its own controllers; the main levers there are reconciliation intervals, concurrency settings and the size of each Kustomization. In both cases we watch the controllers' own metrics in Prometheus: reconciliation duration, queue depth and sync failures. The GitOps multi-cluster reference architecture shows a hub and spoke layout in more detail.
Notifications, health and the developer view
Developers should not need to watch a dashboard to learn that their release is stuck. Argo CD Notifications and the Flux notification controller send sync results and health changes to Slack, Microsoft Teams or a Git commit status, so a failed rollout shows up on the pull request that caused it. Custom health checks teach the controller when a resource is truly ready, for example when a database custom resource reports that it accepts connections, not just that the object exists.
We also add commit status reporting in the other direction: the deployment record links back to the image, the pipeline run and the pull request, so the question of what is running and where it came from has one answer.
A migration sequence that avoids a big bang
Moving existing workloads under GitOps control is safest when done in reversible steps:
- Export current state from the cluster and clean it into declarative manifests or Helm values, removing generated fields.
- Commit it and point the controller at it with automatic sync disabled, so it only reports differences.
- Resolve every reported difference until the controller shows the application in sync without having changed anything.
- Enable automatic sync for non-production, then production, one group of applications at a time.
- Remove direct deployment credentials from CI only after the last application in a cluster has moved.
GitOps pairs naturally with CI/CD, which builds and tests artifacts, and with platform engineering, which turns the repository conventions into self-service templates.