Article may be outdated

This article is 17 days old. Some details may have changed since publication.

Hacker News·5 min read·hard

How Kubernetes Probes Work

C
cyndunlop
How Kubernetes Probes Work
AI Summary

This technical article explains how Kubernetes probes function to improve application resilience by preventing issues like restart loops and request drops. The author uses a TypeScript-based simulation to demonstrate container lifecycle management.

Why it matters

Understanding probe configuration is essential for DevOps engineers to ensure high availability and stability in containerized environments.

Dive DeeperCreate a free account to unlock

I’m going to show you, really show you , how probes work in Kubernetes. How they can make your application more resilient, and how they can help you prevent avoidable mistakes. Like restart loops that take hours to recover from, and dropping requests during rollouts.

Every interactive demo in this post uses webernetes , my partial port of the Kubernetes to TypeScript. It contains more than 100,000 lines of ported Kubernetes Go code to run a simulated cluster right here in your browser . I verified the behaviour of these demos against k3s and managed to find a bug in Kubernetes! More on that later.

Bookmark this section A pod without probes I want to run a pod with a single container. Here’s its manifest, pod-a.yaml :

Continue reading on Headlinne

Create a free account to read the full article.

Read full article →
technologybusiness

Get smarter about the news

Sign up free for a feed built around what you actually care about, Dive Deeper research on any story, and the full text of every article.

Create free account

Already have an account? Sign in