Skip to main content

What are GitOps?

GitOps treats your Git repository as the single version of truth or golden record for application code and infrastructure definitions. Every change, whether it’s a new feature, configuration tweak or security patch, goes through Git via pull requests. Automated agents then reconcile the live environment with the state declared in Git, delivering consistency, visibility and rapid recovery.

How GitOps Works

  • Store declarative configs: Keep Kubernetes manifests, Helm charts or Terraform files versioned in a Git repo. 
  • Define desired state: Describe the exact environment setup, application versions and settings in those files. 
  • Deploy agents: Install GitOps controllers (for example, Argo CD or Flux) that watch the repo for changes. 
  • Reconcile continuously: Controllers compare live state to Git and apply missing or updated resources automatically. 
  • Drift detection: Any divergence between actual and desired state is logged, alerted on or even self-corrected.