Github Blog

Applying GitOps principles to your operations

thumbnail

Applying GitOps Principles to Operations

  • Introduction:

    • Can we use Git repository as source of truth for operational tasks and reconcile changes with real-world view?
    • GitOps builds upon cloud native principles, providing full history of changes on desired state of environment, system or configuration.
  • Using GitOps:

    • Use CI/CD principles to bring changes as pull request from feature branch.
    • Automated process continuously reconciles current state with desired state to update environment.
    • CI/CD workflows can be used to push desired state to environment if agent is not available.
  • Governance in GitOps:

    • Good governance practices are crucial in repositories using GitOps principles.
    • Use branch protection rules and repository rules to bring quality into contribution process.
    • Require at least one reviewer and automate quality checks using GitHub Action Workflows.
    • Consider dry-run and smoke test before merging changes to production environment.