Argo CD Reports configured Whenever It Applies, So Only the Diff Shows Drift
Argo CD's sync log lists every resource it applied with the word kubectl apply printed: created, unchanged, or configured. "Configured" looks like "something here was different", but it only means the apply sent a patch. A client-side apply also manages metadata of its own, such as the annotation that records the last applied configuration, and a patch can touch only that and leave the object's spec exactly as it was.
So the sync log can't tell drift from bookkeeping. The diff can: argocd app diff compares the rendered manifests with the live objects and shows only real differences. Two more checks confirm a spec didn't move: metadata.generation (the API server raises it only when the spec changes) and the pods (a changed Deployment template replaces them).
What It Looked Like
A morning sync printed deployment.apps/jellyfin configured for a Deployment whose folder hadn't changed in Git since it was first deployed, and I wrote it down as drift on the live object, cause unknown (2026-11-27). In the evening, argocd app diff media right before another sync listed only the three new apps; the sync then printed configured for the same Deployment, the shared volume and every HTTPRoute. Nothing had drifted: the diff, not the log, was the evidence.
Related
- GitOps Agents Pull the Desired State from Git and Revert Changes Made Outside It - what drift means, and why an agent corrects it.
- In an App of Apps, Only the Root Is Applied by Hand, So Its Sync Policy Decides What a Commit Can Delete - the manual-sync setup where the diff is read before every sync.
- Homelab v2 Rebuild - where it happened.
References
- Kubernetes documentation: Declarative Management of Kubernetes Objects Using Configuration Files - how
kubectl applycomputes its patch and stores thelast-applied-configurationannotation (last checked 2026-11). - Argo CD documentation: Sync Options -
ServerSideApply=true, the alternative to client-side apply (last checked 2026-11). - Kubernetes API reference: ObjectMeta -
generation, a sequence number for the desired state (last checked 2026-11). homelab/docs/troubleshooting.md, "Argo CD sync saysconfiguredon objects that haven't changed" - the incident and the commands.
Review cards
Flashcard An Argo CD sync prints `deployment.apps/x configured` for an object unchanged in Git. What does that tell you about drift?
Nothing on its own: "configured" only means kubectl apply sent a patch, which can touch nothing but the apply's own metadata. argocd app diff before the sync is the drift check.
Flashcard How can you confirm that a sync didn't change a Deployment's spec?
Compare metadata.generation before and after (it only rises when the spec changes), and check that its pods weren't replaced.