Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kubernetes default liveness and readiness probe

Tags:

kubernetes

I wanted to know what kubernetes does to check liveness and readiness of a pod and container by default.

I could find the document which mentions how I can add my custom probe and change the probe parameters like initial delay etc. However, could not find the default probe method used by k8s.

like image 721
Hemang Avatar asked Dec 18 '18 06:12

Hemang


1 Answers

TL/DR: there is no default readiness probe ("should I send this pod traffic?") and the default liveness probe ("should I kill this pod?") is just whether the container is still running.

like image 154
user3798276 Avatar answered Sep 20 '22 14:09

user3798276