ArgoCD › GitOps Principles
What is the difference between GitOps and Infrastructure as Code (IaC)?
IntermediateAnswer
IaC is codifying infrastructure declaratively; GitOps is an operating model that uses IaC plus Git as the source of truth and an agent that continuously reconciles. All GitOps uses IaC, but not all IaC is GitOps—IaC run manually via a pipeline isn't GitOps without pull-based continuous reconciliation.
Real-world example Terraform applied by hand is IaC; the same declarations reconciled continuously by an in-cluster agent is GitOps.