They all have some rollback mechanism built-in with commands available.
Below is some information regarding these:
- Kubernetes: Rolling Back a Deployment
- Swarm: Roll back to the previous version of a service (features --update-delay)
- OpenShift: Rolling Back a Deployment
I hope the above information will be helpful.