GitOps

GitOps is an operational framework that applies DevOps principles to infrastructure and application deployment, using Git as the single source of truth for both code and configuration.

Core Principles

  • Declarative State: System state is defined declaratively in Git repositories.
  • Automated Deployment: Changes to Git trigger automated deployment to target environments.
  • Continuous Verification: Systems continuously verify their state against the desired state in Git.

How It Works

  1. Developers commit code/configuration changes to a Git repository.
  2. GitOps controller (e.g., Argo CD, Flux) detects changes and applies them to infrastructure.
  3. Controller continuously reconciles environment state with Git repository.