GitOps

Git as the source of truth for infrastructure and applications, the pull model, and reconciliation loops.

Overview

Git as the source of truth

GitOps is a deployment philosophy: Git holds the desired state, and agents continuously reconcile actual state to match it. Weaveworks coined it in 2017, and Kubernetes shops adopted it widely.

The loop has four players. An engineer changes Git by merging a pull request. An agent inside the cluster, Argo CD or Flux, pulls from Git every 1-5 minutes and applies what it finds through the Kubernetes API. The cluster holds the actual state, and when it drifts from Git, the agent notices and corrects it.

Key concepts

  • GitOps four principles
  • Pull model
  • Argo CD
  • Flux
  • Drift correction
  • Promotion via Git

Interview questions

  • What is GitOps and why does it matter?
  • Argo CD vs Flux — how do you choose?
  • How do GitOps and progressive delivery fit together?

Sign up free to read the full topic

More SRE topics

Start free on Cariara · Coding problems · System design studio