What is GitOps?

GitOps is an operational framework that takes DevOps best practices used for application development such as version control, collaboration, compliance, and CI/CD, and applies them to infrastructure automation. At its core, GitOps is about using a Git repository as the single source of truth for declarative infrastructure and applications. Changes to the desired state of the system are made by pushing code to Git, which then triggers an automated process to update the live environment.

Conceptual image representing Git as the source of truth in GitOps

Key Ideas Behind GitOps:

This approach brings numerous benefits, including increased productivity, enhanced developer experience, improved stability, higher reliability, better security, and faster mean time to recovery (MTTR). We'll explore these in more detail in the Benefits and Challenges of GitOps section.

The principles of GitOps resonate with those found in Understanding Git and Version Control, emphasizing the importance of a robust versioning system as the backbone of operational processes.

Illustration of automated processes triggered by Git commits in GitOps

Understanding GitOps is the first step towards modernizing your operational practices. The next logical step is to delve into the Core Principles of GitOps to solidify this foundational knowledge.