19.06.2021 Views

148422597X Kubernetes Management Design Patterns [Vohra 2017-01-29] {E559F6BB}

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 8 ■ Using Rolling Updates

Figure 8-35. Rolling back a deployment

Either keep rolling back one revision at a time and verifying whether the revision is valid or roll back to a

specific revision that is known to be valid, for example revision 4:

kubectl rollout undo deployment/mysql-deployment --to-revision=4

Now list the pods. As indicated in Figure 8-36, all pods are running.

Figure 8-36. Rolling back to revision 4

No further rollback is required.

197

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!