Member-only story
In this blog, we will explore how to check the health of the pods using Liveness and Readiness Probe
If you are not familiar with basics of Kubernetes pod, please check my blog
Prerequisite:
- Functional Kubernetes Cluster configured
- Kubernetes’ command-line tool, kubectl, which is the command-line interface for running commands against Kubernetes clusters.
- Clone this git repo for all the yaml files which we will be using in this blog
Agenda:
- What is Probes/Health Check
- Pod with a Liveness Probe and No Restart Policy
- Creating a Pod Running a Container with a Liveness Probe and a Restart Policy
- Creating a Pod Running a Container with a Readiness Probe
Probes/Health Checks
- It can be configured to check the health of the containers running in a pod.
- used to determine whether a container is running or ready to receive requests
A probe/health check may return the following results: