July 2018
Intermediate to advanced
506 pages
16h 2m
English
There will always be situations, for one reason or another, where deployments don't execute exactly as planned. In those scenarios, the need exists to revert quickly and easily to a previous working deployment. As with most things GCP, you have multiple options for how you execute rollbacks. The cloud console provides a dashboard that lists all of your deployed GKE workloads as well as the revision history for each workload.
The cloud console is great for R&D work or just playing around to learn about the features of GKE. For enterprise workloads, you will want to used scripted deployments and updates using a combination of the Kubernetes CLI and manifest files:
kubectl rollout undo deployment/$(DEPLOYMENT_NAME)
In addition ...