What does "drift" mean in GitOps, and how is it handled?
BeginnerConceptGitOps Principles & Delivery Models
Answer
Drift is any difference between the desired state in Git and the live state in the cluster, caused by kubectl edit, a controller, a webhook or a failed partial apply. Argo CD detects it on every reconcile and marks the app OutOfSync. With selfHeal: true it re-applies Git automatically; without it, it only reports, and a human syncs. Legitimate drift (HPA replicas, injected sidecars) is excluded with ignoreDifferences.
More on GitOps Principles & Delivery Models
What is GitOps, in one or two sentences?BeginnerWhat are the four OpenGitOps principles?BeginnerExplain push-based vs pull-based deployment.BeginnerIs "we keep our Kubernetes YAML in Git and CI runs `kubectl apply`" GitOps?BeginnerWhat are the main benefits of GitOps that you would pitch to a team?BeginnerWhat are the honest downsides or pain points of GitOps?Intermediate