Skip to content
IT glossary
DevOps and cloudUpdated December 3, 2026

GitOps

A deployment approach where Git records what should be running and how it should be configured. A controller checks that description against the live environment and can bring the two back into sync.

Also known as: ArgoCD

What GitOps means

In a GitOps workflow, a repository is the source of truth for an environment's desired state: which version of a service should run, how many replicas it needs, and how it should be configured. The files describe the outcome, not the steps to get there. To change production from two replicas to three, you edit the replica count and get the change reviewed rather than issuing a scaling command directly against production.

How a change reaches production

  1. CI tests the code, builds a container image, and publishes it to a registry. A developer or automation updates the production configuration to reference the new image, ideally by its immutable digest.
  2. A GitOps controller pulls the configuration from Git and compares it with the resources it manages. This ongoing comparison and correction loop is called reconciliation. A mismatch between desired and live state is called drift.
  3. Depending on policy, the controller applies the change automatically or waits for an operator to trigger a sync. In this pull-based model, the build pipeline doesn't need credentials to write to the cluster. In a push-based setup, the pipeline itself sends deployment commands to the target.

Argo CD (also written ArgoCD) is a Kubernetes tool that implements GitOps, not another name for the practice. Flux is another option. Keeping manifests in Git and applying them by hand isn't enough: without ongoing comparison, a manual change can go unnoticed long after deployment.

Example: a live edit that doesn't stick

A team merges a change setting spec.replicas: 3 on its catalog Deployment. During sync, Argo CD updates the Deployment; Kubernetes then creates the extra Pod. Later, an operator scales the Deployment back to two with kubectl. Git still says three, so Argo CD reports drift. If automatic sync and self-healing are enabled, it can restore the value from Git. Otherwise, the mismatch can remain until someone initiates a sync or changes the desired state.

Where it helps and where it stops

Teams use GitOps to manage several clusters or environments consistently while keeping differences such as staging and production replica counts visible in review. Store credentials in a secrets manager rather than committing plaintext secrets. Reverting a commit can restore a previous deployment configuration on the next sync, but it won't recover deleted data or undo a database migration.

What interviewers ask

Expect to explain who builds the image, who changes the desired state, and who writes to the cluster. Another useful distinction is sync versus health: a Deployment manifest can match Git while its Pods are crash-looping. A successful sync tells you the configuration was applied; it doesn't tell you the application is serving traffic.