7: Self-healing
In this chapter, you’ll learn about the Kubernetes Deployment object and use it to make the sample app resilient.
The chapter is organised as follows:
- Intro to Kubernetes Deployments
- Self-heal from a Pod failure
- Self-heal from a worker node failure
Intro to Kubernetes Deployments
Kubernetes has lots of objects that add features and capabilities. In the previous chapter, you used a Service object to provide network connectivity. In this chapter, you’ll use a Deployment object to add self-healing. In fact, in the next few chapters, you’ll use the same Deployment object to perform scaling and rolling updates.
As with Pods and Services, Deployments are defined in YAML manifest files.
Figure 7.1 shows the Deployment manifest we’ll ...
Get Quick Start Kubernetes - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.