Services

Resources

Company

GitOps

GitOps is an operating model for deploying and managing infrastructure and applications. The desired state lives as declarative files in a Git repository, which acts as the single source of truth. An agent running inside the target environment pulls that state and keeps the live system matching it. Every change is a reviewed commit.

How it works

A traditional CD (continuous delivery) pipeline pushes changes into a cluster, so the CI server needs cluster credentials. In GitOps, an agent such as Argo CD or Flux runs in the cluster and pulls from the repo. Argo CD, for example, checks for changes every 3 minutes by default. If someone edits a resource by hand, the agent reports drift and can revert it to what Git says. A rollback is a git revert of the commit.

Why it matters in production

Git history becomes the audit log of who changed what and when. Credentials stay inside the cluster instead of in the build tool. The cost is discipline: secrets, environment overrides and manual hotfixes all need a Git-first path, or drift creeps back.

See also

On the One2N blog

References

  1. Origin of the term

  2. OpenGitOps principles

  3. Argo CD documentation

Comic about GitOps: Kai changes app.yaml in Git from 3 replicas to 5 and a teammate approves; a robot inside the servers checks Git every few minutes and finds live matches at 5; at 3am someone changes the live servers to 8 by hand and the robot puts it back to 5; a bad v1.5 release is undone in Git, the robot undoes it live, and Git history shows who changed what.