GitOps with Argo CD: Patterns That Survive Production
Argo CD makes the happy path look effortless. What separates platforms that stay dependable from those that quietly rot is a small set of structural decisions made early.
Repository structure
Use an app-of-apps or ApplicationSet model with one repository per platform concern and per application. Environment promotion should be explicit: overlays or directories per environment, promoted by reviewed pull requests. A single giant repository becomes a change-coupling trap.
Drift is a signal, not a nuisance
Enable self-heal where appropriate, but treat drift alerts as evidence. Someone editing a cluster by hand is either an emergency or a missing capability; both deserve a follow-up, not a shrug.
Secrets never live in Git
Use External Secrets with your cloud or vault provider, or Sealed Secrets where an external store is not available. Plain Kubernetes Secrets in a repository are a permanent liability regardless of repository visibility.
Sync waves and hooks
Order matters: CRDs before custom resources, platform operators before workloads. Define sync waves deliberately and keep hooks small. A failed sync should fail fast and loudly.
Progressive delivery
Pair Argo CD with Argo Rollouts for canary and blue-green strategies. The repository declares the desired state; the rollout controller decides how the change reaches users, with automated analysis gates.
Governance
Scope Argo CD projects per team, connect SSO groups to roles, and keep an immutable audit trail of who changed what. Git history plus sync history is the change record your auditors will ask for.
None of this is exotic. It is the discipline that lets teams ship daily without the platform becoming the risk.
Written by the BigMachines engineering team.