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>
[1] Configure liveness, readiness and startup probes
[2] Customizing the termination message