Skip to content
BENIBIX Learn

GitOps

Development☁️ DevOps & CloudInfrastructure as Code

Also known as Git Ops, GitOps Workflow, Argo CD, Flux CD

Run your systems from a Git repo. A helper keeps them in line with it.

Think of it like

Think of it like a thermostat. You set the number you want, and it keeps fixing the room to match.

Example

Jack changes the number of app copies from 3 to 5 in a pull request. Once it is merged, the agent adds two copies.

Why it matters

Each change is checked and saved in history. To undo one, you use git revert.

Definition

GitOps is a way to run systems where Git holds the wanted state of everything. The setup is written as files, and every change is a commit. An agent pulls those files and makes the live system match. It keeps checking, and it fixes any drift it finds. Tools like Argo CD and Flux do this for Kubernetes.
An agent pulls the wanted state from Git and keeps the cluster matching.

Common mistake

Changing the live system by hand. The agent sees the drift and puts it back the way Git says.

Key takeaways

  1. 1
    Git holds the truth. The wanted state is in files.
  2. 2
    Pulled in. An agent fetches the changes.
  3. 3
    Always matched. Drift gets fixed on its own.