Pcornel
Automation · Rollback & Recovery

Automatic Rollback

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

Back to the Topic

Answer

Automatic rollback reverts a change by itself when post-change checks fail, such as a confirmed commit timing out, a deployment health check failing or a pipeline running its rollback job.

Remember

  • Confirmed commits and health checks trigger it.
  • Test the rollback path.
  • Log when it happens.

First checks

  • Automatic rollback triggers (failed health check) — criteria
  • kubectl rollout undo deploy/<n> — example
  • commit confirmed timeout — network auto-rollback

Verify in this order

deploy → health check fails → automatic rollback → notify

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=5953

Confirmation

Confirm action

Continue?