GitOps is a declarative, Git-based operational framework for managing infrastructure and applications, where Git serves as the single source of truth for the entire system's desired state. Born from Kubernetes workflows, GitOps combines version control, automation, and continuous reconciliation to ensure what's running in your cluster always matches what's defined in Git β making deployments auditable, reproducible, and easily reversible. Unlike traditional CI/CD where pipelines push changes, GitOps operators pull changes from Git and continuously enforce the declared state, enabling self-healing infrastructure that automatically corrects drift when manual changes occur. As of 2026, over 64% of enterprises use GitOps as their primary delivery mechanism, with the ecosystem expanding beyond Kubernetes into full infrastructure management via tools like Crossplane, Terraform, and OpenTofu.
What This Cheat Sheet Covers
This topic spans 22 focused tables and 145 indexed concepts, 112 flashcards. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.
A jump-to index of every table row in this cheat sheet.
An interactive map of every table and concept in this topic.
Table 1: Core Principles
The four pillars the OpenGitOps project distilled the whole practice down to: your system is described declaratively, that description is versioned and immutable in Git, agents pull it automatically, and they continuously reconcile reality back to it. Every tool and pattern later in this sheet is ultimately an implementation of these four ideas.
| Principle | Example | Description | |
|---|---|---|---|
apiVersion: apps/v1kind: Deploymentspec: replicas: 3 | System's entire desired state is expressed declaratively in Git using configuration files (YAML, JSON) β defines what should exist, not how to create it. | ||
Git commit: f3a9b12 β rollback via git revert f3a9b12 | β’ All state declarations are stored in Git with full version history β’ every change is tracked, auditable, and reversible using standard Git operations. | ||
ArgoCD agent polls Git repo every 3 minutes | Software agents running inside the cluster continuously pull changes from Git β eliminates the need to store cluster credentials in external CI systems (pull model vs push). | ||
Operator detects replicas: 2 (actual) β replicas: 3 (Git) β auto-scales | Agents continuously compare actual cluster state against Git-declared state and automatically correct drift β ensures self-healing without manual intervention. |