GitOps is an approach to continuous deployment (especially for Kubernetes) where Git is the single source of truth for the desired state of infrastructure and applications, and an automated agent continuously reconciles the actual state to match Git. Changes are made via Git, and the system pulls and applies them.
The GitOps model
Git holds the DESIRED STATE (declarative configs: Kubernetes manifests, Helm charts, etc.):
→ an AGENT in the cluster continuously COMPARES actual state vs Git (desired state)
→ it RECONCILES: automatically applies changes to make reality match Git
→ to deploy/change: commit to Git → the agent detects and applies it (PULL-based)
→ Git = single source of truth; the system continuously converges to it.
