Kubernetes Liveness Probe Explained #kubernetes

DevOps Mind · Beginner ·☁️ DevOps & Cloud ·3mo ago

Key Takeaways

Explains Kubernetes Liveness Probe using devops concepts

Full Transcript

Liveness probe in Kubernetes is used to check if a container is still running properly. If the probe fails continuously, Kubernetes kills the container and restarts it according to the pod's restart policy. This is useful when a container is alive but stuck or unresponsive. There are three types of liveness probes. One, HTTP, sends an HTTP request to a specified endpoint. Two, TCP, tries to open a TCP connection on a port. Three, exec, runs a command inside the container. Key parameters of liveness probe includes initial delay seconds, which means wait time before the first check. Period seconds, which means how often to check. Failure threshold, which means how many failures before restarting. Here's an example. This probe checks {slash} health every 10 seconds after a 5-second delay. If it fails too many times, the container restarts.

Original Description

This video explains what liveness probe in Kubernetes is in details and simple language with proper visualisation. #devops #kubernetes #k8s #devsecops
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Related Reads

📰
My MCP Server Kept Crashing. Here's the Error Recovery Pattern That Saved It.
Learn error recovery patterns to prevent MCP server crashes and request loss
Dev.to · Chen Yuan
📰
Deployment of a Web Application to automate talent onboarding using HTML / CSS / JS / BS…
Learn to deploy a web application for automating talent onboarding using HTML, CSS, JS, and Bootstrap, and understand its relevance in corporate training portals
Medium · DevOps
📰
Fix Docker Exit Code 137 (OOMKilled): Why It Happens and How to Stop It
Learn to fix Docker exit code 137 (OOMKilled) and prevent container crashes due to out-of-memory issues
Dev.to · James Joyner
📰
AWS DevOps Setup Sparks Faster CI/CD Pipelines in 2026
Learn how to automate CI/CD pipelines with AWS DevOps tools for faster software delivery and reduced errors
Dev.to · MLXIO
Up next
AWS, Azure, GCP: The One Thing Every Business Gets Wrong
AI Daily
Watch →