Skip to content

12.2. GitOps and CI/CD

GitOps makes Git the single source of truth for infrastructure: the desired state of the system lives in a repository, and an operator continuously reconciles the cluster to match it — so every change is reviewed, versioned, and revertible, and drift is detected and corrected automatically. This chapter covers the GitOps principles, the ArgoCD and Flux operators that implement them, progressive delivery that automates canary analysis, and the pipeline-as-code and artifact-management practices that make the whole path from commit to production reproducible.