How does `argocd app rollback` work, and why is it discouraged in GitOps?
IntermediateConceptThe Application CRD & Sync Policies
Answer
It re-syncs the app to a revision from its sync history (argocd app rollback web 12). It requires auto-sync to be disabled, otherwise you get rollback cannot be initiated when auto-sync is enabled. The problem: Git still points at the newer, bad revision, so the app shows OutOfSync and the next person who syncs, or re-enables auto-sync, redeploys the bad version. The GitOps way is git revert, which keeps Git and cluster aligned. Use CLI rollback only as an emergency brake.
More on The Application CRD & Sync Policies
Walk through the key fields of an Argo CD `Application`.BeginnerWhat values can `targetRevision` take?BeginnerWhat is the difference between `destination.server` and `destination.name`?BeginnerWhat does `syncPolicy.automated` do, and what are its sub-fields?BeginnerWhy is `prune` disabled by default?BeginnerExplain `selfHeal`. When might you not want it?Intermediate