Skip to main content
Kubernetes Beginner Core Concept Q&A Topic: Pods & Health Probes

Explain Kubernetes Pods and how Liveness, Readiness, and Startup probes differ

Quick Summary: A Kubernetes Pod is the smallest deployable scheduling unit sharing network IP and storage volumes across co-located containers; Startup probes protect slow booters, Readiness probes control Service traffic routing, and Liveness probes restart deadlocked containers.

Written by Ravi Shankar Mishra (Founder & Lead Systems Architect, MockAttempt Academy) Reviewed by MockAttempt Engineering Editorial Desk
Last verified:

Direct Interview Answer

Containers inside the same Pod share a single localhost network namespace and lifecycle, managed declaratively by higher-level controllers like Deployment.

Three probes keep workloads healthy: Startup Probe pauses other checks until slow apps finish initializing; Readiness Probe pulls failing pods out of Service endpoints cleanly without killing them; Liveness Probe restarts hung containers whose internal process deadlocked.

Detailed Technical Explanation

Never point a Liveness probe at external databases! If PostgreSQL blips for 10 seconds and your Liveness check fails because it queries Postgres, Kubernetes restarts every pod simultaneously—turning a minor database hiccup into a full cascading outage. Put dependency checks in Readiness, keep Liveness strictly checking local process health.

Practical Walkthrough

Production Spring Boot / Node Deployment probe manifest separating liveness from readiness.

Code Example — YAML
livenessProbe:
  httpGet: { path: /healthz/live, port: 8080 }
  periodSeconds: 10
readinessProbe:
  httpGet: { path: /healthz/ready, port: 8080 }
  periodSeconds: 5
  failureThreshold: 3
Expected Output / Verification
Unready pods drop off LoadBalancer endpoints immediately without restart storms.

Real-World Production Use Case

Zero-downtime rolling restarts across EKS microservices handling live mobile client traffic.

Common Interview Mistakes to Avoid

  • Coupling Liveness probes to downstream databases or Redis, causing cluster-wide restart loops.
  • Running naked single Pods directly in production instead of ReplicaSet/Deployment controllers.
Topics: #kubernetes #pods #probes #devops
Learn. Practise. Prove. Get Career-Ready.

Ready to Build Your IT Career?

Explore industry-led programmes and develop practical skills through training, assessments and interview preparation.