April 2018
Intermediate to advanced
374 pages
8h 35m
English
The deployment resource includes the capability to revert back to a previous version. The simplest form of this is the kubectl rollout undo command. If you wanted to revert back to the Pods running at the previous image, you could use the following command:
kubectl rollout undo deployment/flask
This would reverse the process, doing the same steps except moving back to the earlier deployment resource configuration.
If you have multiple versions, you can roll back to a specific version with the --revision option. You can also watch the process updates with the rollout status command and the -w option. For example, if you just invoked the undo command, you could watch the progress with the following command:
kubectl rollout status ...
Read now
Unlock full access