Health Check In Kubernetes
In order to verify if a container in a pod is healthy and ready to serve traffic kubernetes provides for a range of health checking mechanisms.
Health check in kubernetes. Startup checks ensure that any code that needs to run before an application is ready to receive traffic has been executed. In this article we ll discuss the different probe types and the various ways to use them. Health checks or probes as they are called in kubernetes are carried out by the kubelet to determine when to restart a container for livenessprobe and used by services and deployments to determine if a pod should receive traffic for readinessprobe.
With exposing health checks endpoints in an application kubernetes can use these endpoints to probe the health of the application. A startup check is a health check that s performed when the pod is created or restarted. Startup liveness readiness and shutdown checks.
Health checks can be shallow or deep. If you don t know about them read this cool article. This is mostly thanks to the readiness and liveness probes.
Kubernetes uses health checks also known as probes to determine if instances of your app are running and responsive. Kubernetes keeps applications running while you re asleep.