<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Probes on Samarthya</title><link>https://samarthya.me/tags/probes/</link><description>Recent content in Probes on Samarthya</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>© Samarthya 2018-2026. All rights reserved.</copyright><lastBuildDate>Sat, 22 Aug 2020 10:53:05 +0000</lastBuildDate><atom:link href="https://samarthya.me/tags/probes/index.xml" rel="self" type="application/rss+xml"/><item><title>Probes: K8S</title><link>https://samarthya.me/posts/probes-k8s/</link><pubDate>Sat, 22 Aug 2020 10:53:05 +0000</pubDate><guid>https://samarthya.me/posts/probes-k8s/</guid><description>&lt;p&gt;In this blog we will be talking about Liveness, Readiness and Startup probes of a container.&lt;/p&gt;&#10;&lt;div class="lead text-neutral-500 dark:text-neutral-400 !mb-9 text-xl"&gt;&#10; A &lt;em&gt;&lt;strong&gt;&lt;a href="https://samarthya.me/posts/services-k8s/" &gt;Service&lt;/a&gt;&lt;/strong&gt;&lt;/em&gt; in Kubernetes is an abstraction which defines a logical set of Pods and a policy by which to access them.&#10;— - Life without a service&#10;&lt;/div&gt;&#10;&#10;&#10;&lt;h2 class="relative group"&gt;What is Kubelet?&#10; &lt;div id="what-is-kubelet" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#what-is-kubelet" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;code&gt;Kubelet&lt;/code&gt; is a primary node agent that runs on every node.&lt;/li&gt;&#10;&lt;li&gt;Works in term of PodSpec, that describes a POD (JSON or Yaml).&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&#10;&lt;h2 class="relative group"&gt;Liveness Probe&#10; &lt;div id="liveness-probe" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#liveness-probe" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;It is used by &lt;code&gt;kubelet&lt;/code&gt; to decide when to restart the container.&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;periodSeconds&lt;/code&gt; defines when the &lt;code&gt;kubelet&lt;/code&gt; check periodically.&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;initialDelaySeconds&lt;/code&gt; specifies the initial wait before checking.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;I just created a single container pod that will run &lt;code&gt;touch&lt;/code&gt; command to create a file and then it deletes that specific file after a delay, on which the livenessProbe is listening on and then once liveness fails we can check the container.&lt;/p&gt;</description></item></channel></rss>