Cloud | DevOps | AI made simple · 14+ yrs on AWS, GCP & Kubernetes
I help engineers learn cloud, DevOps, SRE and AI in simple English, crack interviews and follow clear roadmaps. 14+ years building and running platforms on AWS, GCP, Kubernetes and Terraform. One topic a day.
Markdown supported · ⌘↵ to post
This is a clear explanation of a failure mode I have seen more than once. The distinction between liveness and readiness is the part I would stress most: putting the database check in readiness keeps a pod out of rotation without triggering a restart loop, while a liveness check on the same dependency can turn a short database slowdown into a thundering herd of cold starts. I also liked the point about the password rotation runbook. A rotation that is not verified with a real transaction and a Ready pod leaves the same gap in place. One addition I would make is to cache the readiness result for a few seconds, so a burst of probes does not add load to the database it is trying to protect.
The useful split here is that a 200 from a process-alive check is not a promise that the instance can do its real job. In the password-rotation story, the secrets store was updated, a service still started with the old value, and the load balancer, the scheduler, and the uptime monitor all stayed green because /health never touched the database. Putting the dependency check in readiness, not liveness, is the part that is easy to get backwards: a slow database minute should take a pod out of traffic, not restart every instance at once. Using a real 5xx when a request fails, and alerting on error rate or a synthetic checkout as well as the probe, keeps the dashboard from being the only voice in the room.
Julian Neagu
The point about not putting DB checks in liveness is worth calling out. Restarting every pod because the database is having a bad minute can make things much worse. Sometimes doing less is the better fix.