Being Alive and Ready
Hey, a guy I respect in DevOps told me micro services that implement liveness prob and readiness prob is a good thing to do in a Kubernetes environment. That sounds obvious but if an app is in ready state, would that also means it is a live? Why the curve ball? Well, container state machine goes like startup -?-> liveness -?-> readiness then the pod is up and running. It is generally consider bad to send traffic to pod that is not ready to process data. Otherwise, it can cause data lost if proper exception handling is not in place or that reliable connection is assumed like UDP traffic. Liveness prob is there to detect pod in bad state and restart it to gain more use out of iffy pod hosting application of questionable quality. Emm, that sound like making the best of bad situation until someone is notified. For a pod to transition from one state to another, there needs to be some conditions meet. What is the condition transitioning fr...