Skip to content

Files

Latest commit

 

History

History
32 lines (20 loc) · 1.23 KB

run.md

File metadata and controls

32 lines (20 loc) · 1.23 KB

Health Probe

Description

Kubernetes needs a reliable way to check the health of applications

liveness probes - regular checks performed by the Kubelet agent that asks your container to confirm it is still healthy

readiness probes - to signal when a container is ready so that it has some time to warm up before getting hit with requests from the service

kubectl apply -f src/12-health-probe/deployment.yml
kubectl get pods -o wide
kubectl get deployment

Output:

NAME                          READY   STATUS    RESTARTS   AGE   IP            NODE       NOMINATED NODE   READINESS GATES
randomizer-7c6846d7cd-zswlw   1/1     Running   0          39m   10.244.0.34   minikube   <none>           <none>

References

[1] Configure liveness, readiness and startup probes

[2] Customizing the termination message

[3] Implementing probes in Quarkus

[4] Advanced Health Check Patterns in k8s