GitOps
GitOps and continuous delivery
Git as the single source of truth, with promotion between environments that is reviewable, repeatable and reversible.
The situation
Nobody is quite sure what is running in production. Deploys happen from a laptop, and rolling back means finding the person who did it.
Engagement shape
6-12 week rollout across environments
Usual starting point
Pipeline and environment audit
Scope
What you actually get
Environment repository
A layout that scales past the first ten services without merge conflicts.
Reconciliation
Argo CD or Flux configured with drift detection and self-healing.
Progressive delivery
Canary or blue-green rollout with automated analysis and rollback.
Supply chain
Signed images, generated SBOMs and admission policy that rejects unsigned artefacts.
Promotion tooling
A small command that opens the right pull request so nobody edits YAML by hand.
GitOps is a small idea with large consequences: the desired state of every environment lives in Git, and a controller continuously makes reality match it. Deployment stops being an action someone performs and becomes a property the system maintains.
Repository layout that survives growth
The most common mistake is one enormous repository where every team edits the same files. The second most common is a repository per service per environment, which nobody can reason about. We usually land here.
platform-config/
├── bootstrap/ # the app-of-apps entry point
│ ├── dev.yaml
│ ├── staging.yaml
│ └── production.yaml
├── infrastructure/ # cluster-wide, platform owned
│ ├── base/
│ └── overlays/
│ ├── dev/
│ └── production/
└── applications/ # team owned, one dir per service
└── checkout/
├── base/
│ ├── deployment.yaml
│ └── kustomization.yaml
└── overlays/
├── dev/ # image tag updated automatically
└── production/ # image tag updated by promotion PR
Promotion as a pull request
platform promote checkout --to production --sha 4f2a91c → resolved image ghcr.io/acme/checkout:4f2a91c (signed, SBOM present) → staging has run this digest for 19h with no SLO burn → opened PR #482: promote checkout to production gh pr merge 482 --squash → merged → argocd: checkout OutOfSync → Syncing → argocd: rollout canary 10% … analysis passed → argocd: rollout 50% … analysis passed → argocd: checkout Synced / Healthy (2m14s)
Rollback is just git revert
Because the production state is a commit, undoing a bad release is git revert and a merge. No console, no tribal knowledge, and the same review path as any other change.
Common objections
Does this slow us down with extra pull requests?
Promotion pull requests are auto-generated and usually auto-merged for lower environments. Production keeps a human in the loop, which is normally what you want.
Argo CD or Flux?
Either works. Argo CD if you want the UI and your teams benefit from seeing sync state; Flux if you prefer a smaller surface area and are comfortable in the terminal.
What about database migrations?
They stay outside the reconciliation loop, run as pre-sync jobs with explicit ordering, and are always written to be backwards compatible for one release.
Tooling we use here
Questions we get asked
We deploy with Jenkins today. Does that have to go?
Not necessarily. Jenkins can keep building and testing; the change is that it stops running kubectl and starts updating Git instead.
How do secrets work if everything is in Git?
Secrets are referenced, never stored. We use External Secrets or Sealed Secrets so the repository holds a pointer and the cluster resolves the real value.
Can we do this across multiple clusters?
Yes, and it gets more valuable as cluster count rises. One control plane reconciles many clusters from the same reviewed source of truth.
Want this running in your estate?
Send us the shape of your current setup. We will tell you honestly whether this is the right place to start.
Talk to an engineer