DEV Community

Discussion on: Kubernetes: Deployment Success Is Not Production Readiness

Collapse
 
rafaterrero profile image
Rafa Terrero •

Great point! and that's exactly the kind of failure mode that deserves more attention.

My preference would be Git-first whenever possible: revert the problematic change in the source of truth and let the GitOps controller reconcile the desired state.

For time-critical recovery, though, I'd take a different approach:

  1. Temporarily suspend reconciliation for the affected application.
  2. Perform a controlled rollback to the known-good version.
  3. Update Git to reflect that version.
  4. Verify application health and business-level functionality.
  5. Resume reconciliation and confirm that desired and live states converge.

Otherwise, the next reconciliation could undo the recovery.

One important distinction: the lab behind this article used a plain Kind Deployment without Argo CD or Flux, so this is an operational recommendation rather than a behavior I tested in the experiment.

The key principle: a rollback isn't complete until both the running workload and its declared source of truth agree.

Thanks for raising this @sudokat_ . It's a valuable GitOps-specific addition to the discussion.