Ravindra BagaleCourses & study guides मराठी

DevOps

Chapter 63: Kubernetes Health Checks, Self-Healing and Autoscaling: Probes, PDB, HPA, VPA, Cluster Autoscaler and Karpenter

Kubernetes needs to know if the app is alive and ready for traffic. Probes tell it that. Then Kubernetes restarts pods, holds traffic and adds pods and nodes when load rises.

What you will learn in this chapter

  • Restart stuck containers with liveness probes
  • Keep traffic away from pods that are not ready with readiness probes
  • Protect slow-starting apps with startup probes
  • Survive pod and node failures with PDB, anti-affinity and topology spread
  • Scale pods on CPU, memory and custom metrics with HPA
  • Right-size requests with VPA
  • Add and remove nodes with Cluster Autoscaler and Karpenter
  • Prove it all with a load-test lab

Concepts in this chapter

  1. 63.1Liveness probes: restart a stuck container before customers notice
  2. 63.2Readiness probes: send traffic only to pods that can serve it
  3. 63.3Startup probes: give slow apps time to boot without weakening liveness
  4. 63.4Self-healing and fault tolerance: pod failure, node failure, PDB, anti-affinity and topology spread
  5. 63.5Horizontal Pod Autoscaler: scale pods on CPU, memory and custom metrics
  6. 63.6Vertical Pod Autoscaler: right-size CPU and memory requests from real usage
  7. 63.7Cluster Autoscaler and Karpenter: add and remove nodes automatically
  8. 63.8Load-test lab: probes, PDB, HPA and failures together under real traffic

The chapter recap is at the end of the last concept page.