<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Tomek</title>
    <description>The latest articles on DEV Community by Tomek (@jural).</description>
    <link>https://dev.to/jural</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4010150%2F2839f39b-551a-4c76-8f79-7f8877124edb.png</url>
      <title>DEV Community: Tomek</title>
      <link>https://dev.to/jural</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jural"/>
    <language>en</language>
    <item>
      <title>Kubernetes probes: readiness vs liveness vs startup — and how a wrong setup can restart your whole deployment</title>
      <dc:creator>Tomek</dc:creator>
      <pubDate>Tue, 30 Jun 2026 23:04:49 +0000</pubDate>
      <link>https://dev.to/jural/kubernetes-probes-readiness-vs-liveness-vs-startup-and-how-a-wrong-setup-can-restart-your-whole-2aj2</link>
      <guid>https://dev.to/jural/kubernetes-probes-readiness-vs-liveness-vs-startup-and-how-a-wrong-setup-can-restart-your-whole-2aj2</guid>
      <description>&lt;p&gt;Most explanations of Kubernetes health probes are text and diagrams. I tried to explain them in a different way — with an interactive, step-by-step animation — and this is a short text version of it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The three probes, in one line each
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;readiness&lt;/strong&gt; — decides if the pod gets traffic. If it fails, Kubernetes removes the pod from the Service endpoints. The container is &lt;strong&gt;not&lt;/strong&gt; restarted.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;liveness&lt;/strong&gt; — decides if the container is restarted. If it fails, the kubelet &lt;strong&gt;restarts&lt;/strong&gt; the container.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;startup&lt;/strong&gt; — protects slow-starting containers. While it runs, liveness and readiness are held off, so a slow app is not killed before it is ready.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The common mistake is treating readiness and liveness as the same "is it healthy?" check. They are not — one moves traffic, the other restarts the process.&lt;/p&gt;

&lt;h2&gt;
  
  
  How a wrong setup becomes an outage
&lt;/h2&gt;

&lt;p&gt;The dangerous case: a &lt;strong&gt;liveness&lt;/strong&gt; probe that checks a slow or shared dependency.&lt;/p&gt;

&lt;p&gt;A traffic peak makes that dependency even slower. The liveness probe then fails on &lt;strong&gt;all replicas at the same time&lt;/strong&gt;, and Kubernetes restarts the whole deployment in a loop. So one slow dependency becomes a full outage — when readiness would have been the safer choice.&lt;/p&gt;

&lt;p&gt;This is only one of several setups that can cause it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The interactive version
&lt;/h2&gt;

&lt;p&gt;Here you can move a pod through the probe states and watch what happens each time (this GIF is one scene):&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnlkhkw6dphiuar6r8u6i.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnlkhkw6dphiuar6r8u6i.gif" alt=" " width="480" height="510"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The full interactive walkthrough — with several failure cases — is here:&lt;br&gt;
👉 &lt;a href="https://flowexplain.com/explainers/kubernetes-health-probes" rel="noopener noreferrer"&gt;https://flowexplain.com/explainers/kubernetes-health-probes&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;(It is on my own non-commercial site — no signup, no ads.)&lt;/p&gt;

&lt;h2&gt;
  
  
  I'd like your feedback
&lt;/h2&gt;

&lt;p&gt;Does this interactive format help you understand the topic better than a no gimmick? I am asking because if it works well, I want to make moreinteractive tutorials like this for Kubernetes.&lt;/p&gt;

&lt;p&gt;And if anything here is technically wrong, please tell me and I will fix it.&lt;/p&gt;

</description>
      <category>kubernetes</category>
      <category>devops</category>
      <category>tutorial</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
