Part 1 of a 4-part series on GitOps: what it is, deploying with it, handling drift, and managing multiple environments.
You've probably lived some version of this.
A deployment goes out. Something breaks. You pull up the dashboard, and the first question isn't "how do we fix this" — it's "what actually changed?" Someone checks the last Jenkins build. Someone else checks if anyone SSH'd into a node. A third person remembers "oh wait, I think I tweaked a replica count last Thursday to handle a traffic spike, and never changed it back." Nobody has a clean answer, because the truth isn't written down anywhere — it's scattered across three people's memory and half a dozen kubectl commands that were never logged.
This is the exact problem GitOps was built to kill.
The actual shift GitOps makes
Most teams run infrastructure like this: someone — a person, or a CI pipeline with standing credentials — reaches into the cluster and changes things directly. Each change is easy in the moment and invisible after the fact. Over weeks, the cluster becomes a living thing nobody fully understands anymore, because it's the sum of dozens of untracked, one-off edits.
GitOps makes one rule non-negotiable: the cluster is never changed directly. It's only ever changed by updating a file in Git. A tool — ArgoCD is the most common one — sits inside the cluster, constantly comparing what Git says the system should look like against what's actually running, and correcting the difference.
That's not a tooling detail. It's a change in who's allowed to make decisions. Before, anyone with cluster access could quietly change production. After, the cluster only reflects what's been committed, reviewed, and merged — the same process you already trust for code.
Argo CD polls Git for the desired state, then synchronises it out to Cluster A, B, and C
One agent, one source of truth, many clusters — it polls Git, then synchronises the result out.
What is GitOps?
GitOps is a set of practices that leverages Git workflows to manage infrastructure and application configurations.
By using Git repositories as the source of truth, it allows the DevOps team to store the entire state of the cluster configuration in Git so that the trail of changes are visible and auditable.
GitOps simplifies the propagation of infrastructure and application configuration changes across multiple clusters by defining your infrastructure and applications definitions as "code".
Benefits of GitOps:
- Ensure that the clusters have similar states for configuration, monitoring, or storage.
- Recover or recreate clusters from a known state.
- Create clusters with a known state.
- Apply or revert configuration changes to multiple clusters.
- Associate templated configuration with different environments.
What is Argo CD?
Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes.
It follows the GitOps pattern of using Git repositories as the source of truth for defining the desired application state.
It automates the deployment of the desired application states in the specified target environments. Application deployments can track updates to branches, tags, or be pinned to a specific version of manifests at a Git commit.
Replaying the 2 AM incident with GitOps in place
Go back to that broken deploy. With GitOps running:
The "what changed" question has a one-line answer: git log on the config repo. No guessing, no Slack archaeology. That replica count someone tweaked manually last Thursday? It would have been flagged as drift the moment it happened — not discovered three weeks later during an outage. Rolling back isn't "try to remember what it looked like before" — it's reverting a commit and letting the tool apply the previous state automatically.
None of this requires anyone to be more careful or more disciplined. It requires the system to refuse untracked changes in the first place. That's the difference between GitOps and "we have a deployment checklist" — checklists rely on humans following them every single time; GitOps makes the shortcut structurally unavailable.
Why this is worth caring about even if you're not the one on call
If you've ever inherited a system and had no idea why it was configured the way it was, you've felt the cost of untracked change. GitOps isn't just an ops convenience — it's the difference between a system with a legible history and one that's effectively a black box held together by tribal knowledge.
That's the whole idea of this post. The next three parts get into the mechanics — actually running ArgoCD, watching it catch drift in real time, and managing multiple environments cleanly. But none of that matters if you don't first buy into why the rule exists: untracked changes aren't a minor inconvenience, they're the root cause of almost every "nobody knows what changed" incident.
What's your version of this story? Have you ever been in an incident where the hardest part was figuring out what actually changed, not fixing the actual bug? I'd genuinely like to hear it in the comments.
Next up — Part 2: I actually deploy something with ArgoCD and show what it looks like when Git becomes the only way in.

Top comments (0)