Upgrade and roll back OpsKnight on Swarm
Back up, migrate, deploy, verify, and make a schema-aware rollback decision with maintained Swarm scripts.
Prerequisites
Read release notes, Database migrations, and Rollback. Obtain the new digest, verified database/secret backups, current stack configuration, and rollback owner/window.
Prepare the upgrade
Record current service images/configs/secrets, stack tasks, database state, health, and exact deployment inputs. Validate new capacity and image compatibility without changing unrelated settings.
Run the upgrade
Export the new tested digest and invoke the maintained deploy.sh. It serializes deployment, creates versioned secrets, runs direct migration, deploys/prunes, waits for convergence, and checks readiness. Stop on migration failure.
Verify the upgrade
Confirm every service uses the approved digest, desired tasks converge, one topology owns work, readiness passes internally/externally, and queues/roles/providers/database are healthy. Complete synthetic incident/notification/acknowledgement/resolution/projection and soak.
Operate after acceptance
Retain prior image/configuration and backups for the rollback window. Confirm alerts, backup, certificates, secrets, and node-failure capacity still apply.
Troubleshooting
Migration fails: keep old compatible workload state, preserve logs, and fix direct database/TLS/privilege/migration cause before retry.
Mixed revisions: inspect service update state/tasks and registry access on every node; do not accept partial convergence.
Queue regression: inspect role routing, provider/database capacity, and task health before scaling.
Change or undo the upgrade
Use deploy/swarm/scripts/rollback.sh only after confirming prior image/schema compatibility. Stack rollback cannot reverse PostgreSQL migration. If incompatible, invoke the controlled database recovery plan rather than improvising reverse migration.
Next steps
Last updated for v2.0.0
Edit this page on GitHub