Member-only story

Kubernetes Pod Health Check -Liveness and Readiness Probe

Nidhi
5 min readDec 16, 2020

--

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:

  1. Functional Kubernetes Cluster configured
  2. Kubernetes’ command-line tool, kubectl, which is the command-line interface for running commands against Kubernetes clusters.
  3. Clone this git repo for all the yaml files which we will be using in this blog

Agenda:

  1. What is Probes/Health Check
  2. Pod with a Liveness Probe and No Restart Policy
  3. Creating a Pod Running a Container with a Liveness Probe and a Restart Policy
  4. 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:

--

--

Nidhi
Nidhi

Written by Nidhi

Devops Automation Enginneer

No responses yet