A 30-second database blip turns into a 20-minute full outage because every pod became NotReady at the same time.

AdvancedTroubleshootingSite down
Answer

Likely causes → Readiness probes check the database (a deep health check). When the DB blipped, every pod failed readiness, all endpoints were removed, and the ingress returned 503 even for pages that don't need the DB. Liveness probes doing the same thing restart pods and add a thundering herd of reconnects.

Diagnose →

kubectl get events -n prod --field-selector reason=Unhealthy | head
kubectl get deploy api -n prod -o jsonpath='{.spec.template.spec.containers[0].readinessProbe}'

Fix → Make liveness check only the process. Make readiness check only what the pod itself needs to serve (not shared dependencies), and handle DB errors per request with a degraded response.

Prevent → Health check design review: shared dependencies never in liveness, rarely in readiness. Add connection-retry backoff with jitter.

All Real-World Interview questions Roadmap: Interview readiness

More on Site down