4 Zero Downtime Operations
This chapter covers:
- Creating long-lasting reliable deployments
- Have Kubernetes keep your applications running without your intervention
- Updating applications without downtime
Kubernetes can automate many operations like restarting your code on application failure, or migrating your application in the case of hardware failure, all which work to make your deployment more reliable without you needing to monitor it 24/7. These automated operations are one of the key value propositions of Kubernetes, and an essential step to taking full advantage of everything it has to offer.
Kubernetes can also help you update your application without outages and glitches by booting the new version of the application and monitoring its status to ensure it’s ready to serve traffic, before removing the old version.
To help Kubernetes help keep your application running without downtime during normal operations and upgrades, you need to provide certain information about the state of your application with a process known as Health Checks. In the next section we’ll go through adding the various health checks to your application, and in the later section, how these can be used with Kubernetes’ in-built roll out strategies to update your application without glitches or downtime.