Kubernetes Liveness Probe Explained #kubernetes

DevOps Mind · Beginner ·☁️ DevOps & Cloud ·3mo ago
Skills: Kubernetes90%

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

📰
Building a process manager for 40 services on 8GB of RAM
Learn how to build a unified process manager that optimizes resource allocation for multiple services within a limited RAM budget
Dev.to · Victor García
📰
100 Days of DevOps and Cloud (AWS), Day 16: A Load Balancer in Ten Lines of Nginx, and Least-Privilege IAM
Learn to load balance with just 10 lines of Nginx config and apply least-privilege IAM principles for secure DevOps practices
Dev.to · Nnamdi Felix Ibe
📰
ColdFusion Docker Containers Hanging During Security Updates
Troubleshoot ColdFusion Docker containers hanging during security updates and learn how to resolve the issue
Dev.to · Deepak Sir
📰
Your Azure Network Topology Deserves a Code Review — Not a Portal Click-Through
Learn to apply code review principles to your Azure network topology for better infrastructure management
Medium · DevOps
Up next
How to Code with Distrobox on the Steam Deck
Ian Wootten
Watch →