⚡ ~/naveed Interview Prep
⚡ Portfolio Home ✍️ Engineering Blog Deep Dives 🎯 Interview Hub 998+ Scenarios ☸️ Kubernetes Mastery Hub 24 Modules 🎮 DevOps Arcade & Quizzes Subnet Blitz ⚡ 🗺️ DevOps Roadmaps PDFs & Guides 🤖 Morpheus Analysis AI Quant ↗ 🛠️ Developer Tools Utilities 🧪 Labs & Experiments 📄 Interactive CV & Certs 🔗 All Links & Socials ⚡ Join The Dispatch (Weekly SRE Newsletter) →
Senior DevOps / SRE Kubernetes Pod Health & Self-Healing Core Architecture

Q: What are the different types of probes, and which probe acts first — Startup, Readiness, or Liveness?

Detailed breakdown of the Kubernetes health probe evaluation lifecycle, explaining why startupProbe runs first and how readiness and liveness interact to prevent deployment death spirals.

#Kubernetes #Health Probes #Liveness #Readiness #Startup
🎙️ Candidate Opening & Architectural Context
"Kubernetes provides three distinct health probes: Startup, Readiness, and Liveness. The Startup probe ALWAYS acts first. Until the Startup probe succeeds, both Liveness and Readiness probes are completely disabled."
Advertisement

🛠️ Production Runbook & Step-by-Step Resolution

1

The Execution Hierarchy (Startup Probe Acts First)

On container launch, the kubelet runs the startupProbe. While it runs, liveness and readiness probes do not execute. If the startup probe fails to succeed within initialDelaySeconds + (periodSeconds * failureThreshold), the container is killed and restarted.

2

Readiness Probe: Controls Traffic Routing

Once startup passes, the readinessProbe executes periodically. If it fails, the container is NOT restarted. Instead, the kubelet removes the Pod IP from the Service EndpointSlice so it stops receiving user traffic.

3

Liveness Probe: Controls Container Lifecycle (Self-Healing)

The livenessProbe detects deadlocks where the process is running but cannot make progress. If it fails, the kubelet kills the container and invokes the restartPolicy.

💡 The Senior SRE Gold Nugget (Key Architectural Takeaway)
"StartupProbe executes first to protect slow-booting apps. Readiness removes pods from service endpoints without killing them; Liveness kills and restarts frozen containers."
⚡ 60-Second Elevator Pitch Talking Points
  • StartupProbe acts first: all readiness and liveness checks are disabled until it succeeds.
  • ReadinessProbe controls routing: failure strips the pod IP from Endpoints without restarting the container.
  • LivenessProbe controls restarts: failure triggers container termination (SIGTERM/SIGKILL) for deadlocks.
  • Use startupProbe with high failureThreshold for legacy apps instead of huge initialDelaySeconds.
Advertisement
Want more Kubernetes scenarios?
Explore our complete collection of scenario-based Kubernetes interview runbooks.
Browse All Kubernetes Questions →

📚 Related Production Scenarios in Kubernetes