Pcornel
Automation · GitOps

Rollback

Cheat sheet · https://pcornel.dk/topic.php?topic=5490

Back to the Topic

Answer

Rollback in GitOps is done by reverting the commit in Git, after which the controller reconciles the system back to the previous configuration, with full history of what changed.

Remember

  • Roll back by reverting the commit.
  • The controller reconciles to the previous state.
  • History shows exactly what changed.

First checks

  • git revert <commit> — revert change
  • argocd app rollback <app> <id> — temporary rollback (disables auto-sync)
  • argocd app history <app> — deployment history

Verify in this order

bad change → git revert → reconcile → healthy

Where it usually breaks

Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5490

Confirmation

Confirm action

Continue?