source code repository as source of truth & enables continuous deployments GitOps main principles: 1. Declarative 2. Versioned and Immutable 3. Pulled Automatically 4. Continuously Reconciled https://opengitops.dev/ What is GitOps?
best practices: code reviews, pull requests, history tracking Can be implemented on IaC (Infrastructure as a Code) and Apps Faster deployments and rollbacks by fast Observability feedback Increased stability and reliability - No configuration drifts!
single Git branch Don’t use long term branches per Environment – anti pattern! Do use short-lived branches to allow Pull Request reviews with required reviewers 2. Single source of truth doesn’t mean one Git repo! • “All in one” - Single Repository for All – separation using Directories • “Fan Out” - Repository per Environment - separation using Repositories Argo CD & Git
allows validation of CRs/CRDs YAML prior to applying Helm supports various methods of distribution Helm allows dependency modules (just like code) Use Helm Charts for templatization to keep your code DRY and avoid repeated YAMLs Argo CD, Git & Helm