<?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: Feres Berbeche</title>
    <description>The latest articles on DEV Community by Feres Berbeche (@feresberbeche).</description>
    <link>https://dev.to/feresberbeche</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%2F4252210%2F7c721e5e-0436-4013-b89f-19e123baaf39.jpg</url>
      <title>DEV Community: Feres Berbeche</title>
      <link>https://dev.to/feresberbeche</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/feresberbeche"/>
    <language>en</language>
    <item>
      <title>ImagePullBackOff: what each error message actually means</title>
      <dc:creator>Feres Berbeche</dc:creator>
      <pubDate>Fri, 27 Nov 2026 21:53:48 +0000</pubDate>
      <link>https://dev.to/feresberbeche/imagepullbackoff-what-each-error-message-actually-means-1jfh</link>
      <guid>https://dev.to/feresberbeche/imagepullbackoff-what-each-error-message-actually-means-1jfh</guid>
      <description>&lt;p&gt;&lt;code&gt;ImagePullBackOff&lt;/code&gt; is two facts glued together. The first is that the container runtime on the node tried to pull the image and failed: that failure is reported once as &lt;code&gt;ErrImagePull&lt;/code&gt;. The second is that the kubelet is now waiting before it tries again, with a delay that doubles after each failure up to five minutes. Neither part says &lt;em&gt;why&lt;/em&gt; the pull failed.&lt;/p&gt;

&lt;p&gt;The reason is always there, though. It is in the pod's events, written by the kubelet in the words the registry or the runtime used, and it falls into one of six groups. Read the message and you know which group you are in before you change anything.&lt;/p&gt;

&lt;h2&gt;
  
  
  Read the message, not the status
&lt;/h2&gt;

&lt;p&gt;The status column is the least informative place to look. The event is the most:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;kubectl -n &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;namespace&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; describe pod &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;pod&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; sed -n &lt;span class="s1"&gt;'/Events:/,$p'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You are looking for a &lt;code&gt;Failed&lt;/code&gt; event from the kubelet that starts with &lt;code&gt;Failed to pull image&lt;/code&gt;. The text after the image name is the registry's or the runtime's own answer, and it is what the rest of this article sorts. If you have several pods failing the same way, one is enough to read:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;kubectl -n &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;namespace&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; get events --field-selector &lt;span class="nv"&gt;reason&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;Failed --sort-by=.lastTimestamp &lt;span class="o"&gt;|&lt;/span&gt; tail -5
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  1. The image or tag does not exist
&lt;/h2&gt;

&lt;p&gt;Messages containing &lt;code&gt;not found&lt;/code&gt;, &lt;code&gt;manifest unknown&lt;/code&gt; or &lt;code&gt;repository does not exist&lt;/code&gt; mean the registry answered and said there is no such thing. The usual causes are a typo in the image name, a tag that was never pushed (a CI job that failed after the deploy was templated), or a tag that was deleted by a retention policy.&lt;/p&gt;

&lt;p&gt;Check it from your own machine, with the exact string from the pod spec:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;kubectl -n &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;namespace&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; get pod &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;pod&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; -o &lt;span class="nv"&gt;jsonpath&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'{.spec.containers[*].image}'&lt;/span&gt;
skopeo inspect docker://&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;image&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;   &lt;span class="c"&gt;# or: crane manifest &amp;lt;image&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the image exists from your machine but not from the cluster, you are not in this group: go to credentials or network below.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. The registry refused the credentials
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;pull access denied&lt;/code&gt;, &lt;code&gt;401 Unauthorized&lt;/code&gt;, &lt;code&gt;403 Forbidden&lt;/code&gt; and &lt;code&gt;authorization failed&lt;/code&gt; mean the registry wanted credentials the node did not present, or rejected the ones it did. Private images need an &lt;code&gt;imagePullSecrets&lt;/code&gt; entry, either on the pod spec or on its ServiceAccount, and the details that go wrong are consistent:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The Secret is in a different namespace. Pull secrets are namespaced; the pod can only use one in its own namespace.&lt;/li&gt;
&lt;li&gt;The Secret has the wrong type. It has to be &lt;code&gt;kubernetes.io/dockerconfigjson&lt;/code&gt;, and the registry host inside it has to match the image's registry exactly.&lt;/li&gt;
&lt;li&gt;The pod's ServiceAccount is not the one you added the secret to.&lt;/li&gt;
&lt;li&gt;The token expired. Some registries issue short-lived tokens, so a secret that worked at deploy time fails hours later when a pod is rescheduled.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;kubectl -n &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;namespace&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; get pod &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;pod&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; -o &lt;span class="nv"&gt;jsonpath&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'{.spec.imagePullSecrets}{"\n"}{.spec.serviceAccountName}'&lt;/span&gt;
kubectl -n &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;namespace&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; get secret &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;secret&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; -o &lt;span class="nv"&gt;jsonpath&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'{.type}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A public image that suddenly returns &lt;code&gt;401&lt;/code&gt; is usually a typo in the repository path: many registries answer "unauthorized" rather than "not found" for repositories that do not exist, so as not to reveal which private ones do.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. The registry is rate limiting you
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;toomanyrequests&lt;/code&gt; or an HTTP &lt;code&gt;429&lt;/code&gt; means the registry served you, just not this time. Docker Hub limits pulls by anonymous and free accounts, and a whole cluster behind one NAT address counts as one client. It shows up after a scale-out or a node replacement, when many nodes pull the same images at once.&lt;/p&gt;

&lt;p&gt;The durable fixes are authenticated pulls, a pull-through cache or mirror inside your network, or copying the images you depend on into your own registry. Retrying harder makes it worse.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. The image exists, but not for this node's architecture
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;no matching manifest for linux/arm64&lt;/code&gt; (or &lt;code&gt;amd64&lt;/code&gt;) means the tag exists but was built for another CPU architecture. It appears the day someone adds ARM nodes to a cluster, or schedules onto them for the first time. A multi-architecture image lists one manifest per platform; check which platforms the tag actually has:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;skopeo inspect --raw docker://&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;image&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; jq &lt;span class="s1"&gt;'.manifests[].platform'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then either publish the missing architecture or keep the workload off those nodes with a &lt;code&gt;nodeSelector&lt;/code&gt; on &lt;code&gt;kubernetes.io/arch&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. The node cannot reach the registry
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;dial tcp: lookup &amp;lt;host&amp;gt;: no such host&lt;/code&gt;, &lt;code&gt;i/o timeout&lt;/code&gt;, &lt;code&gt;connection refused&lt;/code&gt; and &lt;code&gt;x509: certificate signed by unknown authority&lt;/code&gt; are network and trust problems, and the important detail is &lt;em&gt;where&lt;/em&gt; they happen: the pull is done by the container runtime on the node, not inside your pod. A registry that resolves from your laptop or from a debug pod can still be unreachable from the node, because of node DNS, an egress firewall, a proxy the runtime does not know about, or a private registry whose CA certificate the runtime does not trust.&lt;/p&gt;

&lt;p&gt;Test from the node itself, through the same runtime the kubelet uses:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;crictl pull &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;image&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If that fails with the same message, the fix is in the node's configuration, not in the manifest.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. The node ran out of disk
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;no space left on device&lt;/code&gt; during a pull means the node's image filesystem is full. The kubelet garbage-collects unused images when disk usage crosses its threshold, but a node that runs many large images, or one with a small root disk, can fill faster than collection frees it. The same node usually carries a &lt;code&gt;DiskPressure&lt;/code&gt; condition, visible in &lt;code&gt;kubectl describe node&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two things that look like pull failures but are not
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;A tag that moved.&lt;/strong&gt; If an image uses a mutable tag such as &lt;code&gt;latest&lt;/code&gt; and the pull &lt;em&gt;succeeds&lt;/em&gt;, two nodes can still be running different images under the same name, pulled at different times. Pods behave differently by node, and nothing reports an error. Pinning images by digest (&lt;code&gt;image@sha256:...&lt;/code&gt;) removes the question.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;imagePullPolicy&lt;/code&gt;.&lt;/strong&gt; A tag of &lt;code&gt;latest&lt;/code&gt; or no tag at all defaults to &lt;code&gt;Always&lt;/code&gt;, so every pod start pulls, and every start fails while the registry is unreachable. Other tags default to &lt;code&gt;IfNotPresent&lt;/code&gt;, so pods on nodes that already have the image keep starting, and the failure appears only on new nodes. That is why an outage of this kind often looks partial.&lt;/p&gt;

&lt;h2&gt;
  
  
  A checklist you can keep
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;describe pod&lt;/code&gt; events: copy the text after &lt;code&gt;Failed to pull image&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;not found&lt;/code&gt; or &lt;code&gt;manifest unknown&lt;/code&gt;: check the exact image string and that the tag exists.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;401&lt;/code&gt;, &lt;code&gt;403&lt;/code&gt;, &lt;code&gt;pull access denied&lt;/code&gt;: secret namespace, type, registry host, ServiceAccount, token age.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;toomanyrequests&lt;/code&gt; or &lt;code&gt;429&lt;/code&gt;: authenticate, mirror, or copy the image in.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;no matching manifest&lt;/code&gt;: the image lacks this node's architecture.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;no such host&lt;/code&gt;, &lt;code&gt;timeout&lt;/code&gt;, &lt;code&gt;x509&lt;/code&gt;: test with &lt;code&gt;crictl pull&lt;/code&gt; on the node.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;no space left on device&lt;/code&gt;: the node's disk, not the image.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Related failures
&lt;/h2&gt;

&lt;p&gt;A pod that never gets as far as pulling may be &lt;a href="https://alertigate.com/blog/kubernetes-pod-pending-unschedulable/" rel="noopener noreferrer"&gt;stuck in Pending, and the scheduler will say why&lt;/a&gt;. A pod whose image pulls fine and then keeps exiting is a different problem with its own order of checks: &lt;a href="https://alertigate.com/blog/debug-crashloopbackoff-kubernetes/" rel="noopener noreferrer"&gt;CrashLoopBackOff, without guessing&lt;/a&gt;. And the general method behind all of these, stating the causes and eliminating them on evidence, is in &lt;a href="https://alertigate.com/blog/kubernetes-root-cause-analysis/" rel="noopener noreferrer"&gt;root cause analysis for Kubernetes incidents&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;This article was written with AI assistance. It first appeared on &lt;a href="https://alertigate.com/blog/kubernetes-imagepullbackoff/" rel="noopener noreferrer"&gt;alertigate.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>kubernetes</category>
      <category>devops</category>
      <category>docker</category>
      <category>troubleshooting</category>
    </item>
    <item>
      <title>How to debug CrashLoopBackOff in Kubernetes without guessing</title>
      <dc:creator>Feres Berbeche</dc:creator>
      <pubDate>Fri, 27 Nov 2026 21:34:56 +0000</pubDate>
      <link>https://dev.to/feresberbeche/how-to-debug-crashloopbackoff-in-kubernetes-without-guessing-4jm3</link>
      <guid>https://dev.to/feresberbeche/how-to-debug-crashloopbackoff-in-kubernetes-without-guessing-4jm3</guid>
      <description>&lt;p&gt;&lt;code&gt;CrashLoopBackOff&lt;/code&gt; is the most common thing a Kubernetes cluster will ever tell you, and it is almost useless on its own. It does not say the container ran out of memory. It does not say a config value is missing. It does not even say the container is broken — a failing readiness probe and a bad image entrypoint both end up here. All it says is: &lt;em&gt;this container keeps exiting, and the kubelet is now waiting longer between attempts.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The backoff itself is the only part that is precise. The kubelet restarts a failed container after 10 seconds, then 20, then 40, doubling to a five-minute ceiling. When you see the gaps widening, you are watching that timer, not a diagnosis.&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%2Fiovqe78188bdhti7kkc3.png" 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%2Fiovqe78188bdhti7kkc3.png" alt="A timeline of a crash-looping container: it starts and exits four times, with the kubelet waiting 10 seconds, then 20, then 40 between restarts" width="800" height="172"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The widening gaps are the kubelet’s backoff timer. They tell you how long it has been failing, and nothing at all about why.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;So the work is the same every time: figure out &lt;em&gt;which&lt;/em&gt; of the half-dozen causes you have, using evidence rather than the order you happen to think of them in. This article is the order that actually works, and what each step rules in or out.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start with the exit, not the logs
&lt;/h2&gt;

&lt;p&gt;The single most informative field is how the container died, and it is one command away:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;kubectl -n &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;namespace&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; get pod &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;pod&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; -o &lt;span class="nv"&gt;jsonpath&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'{.status.containerStatuses[0].lastState.terminated}'&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; jq
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You are looking for two things:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field&lt;/th&gt;
&lt;th&gt;What it tells you&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;reason&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;Error&lt;/code&gt; means the process exited on its own. &lt;code&gt;OOMKilled&lt;/code&gt; means the kernel killed it.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;exitCode&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;1&lt;/code&gt; is an ordinary application error. &lt;code&gt;137&lt;/code&gt; is SIGKILL — nearly always the OOM killer. &lt;code&gt;139&lt;/code&gt; is a segfault. &lt;code&gt;143&lt;/code&gt; is SIGTERM.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;This one distinction splits the problem space in half before you have read a single log line.&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%2Frqy2dcwxkbhmisvgyyog.png" 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%2Frqy2dcwxkbhmisvgyyog.png" alt="The lastState.terminated field branching into two cases: exit code 1 with reason Error, where the process chose to stop, and exit code 137 with reason OOMKilled, where the kernel stopped it" width="800" height="240"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;One field, two very different investigations. Chasing logs before reading it is how the first ten minutes get spent on the wrong branch.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;An &lt;code&gt;exitCode&lt;/code&gt; of 1 with &lt;code&gt;reason: Error&lt;/code&gt; means the application &lt;em&gt;chose&lt;/em&gt; to stop, and its logs will say why. &lt;code&gt;OOMKilled&lt;/code&gt; with &lt;code&gt;137&lt;/code&gt; means it never got the chance, and the logs will simply stop mid-sentence.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; A container that is &lt;code&gt;OOMKilled&lt;/code&gt; is not always leaking. A perfectly healthy process that allocates one large batch can cross its limit in the gap between two metrics scrapes, and the memory graph will look flat the whole time. We walk through exactly that case in &lt;a href="https://alertigate.com/blog/kubernetes-oomkilled-exit-code-137/" rel="noopener noreferrer"&gt;OOMKilled and exit code 137&lt;/a&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Then read the logs of the previous container
&lt;/h2&gt;

&lt;p&gt;The running container is a fresh attempt and usually has nothing in it yet. The one that died has the answer:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;kubectl -n &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;namespace&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; logs &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;pod&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; --previous --tail=50
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;An application that refuses to start almost always says so in its last few lines. What you want is the final &lt;em&gt;non-framework&lt;/em&gt; line — the one written by the service itself rather than by the runtime unwinding afterwards.&lt;/p&gt;

&lt;p&gt;Here is a real one, from a crash loop in a lab cluster. The container printed &lt;code&gt;configuration error: DATABASE_URL is not set, refusing to start&lt;/code&gt; and exited with code 1, about a second after each start. That is a complete diagnosis: the Deployment's pod template does not supply a variable the image requires. No node problem, no image problem, no probe problem — and, importantly, no memory problem, which the working set of ~8 MiB against a 128 MiB limit independently confirms.&lt;/p&gt;

&lt;h3&gt;
  
  
  When the logs are empty
&lt;/h3&gt;

&lt;p&gt;Two cases produce a crash loop with no useful logs at all:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The process was killed before it could write.&lt;/strong&gt; Check &lt;code&gt;lastState.terminated.reason&lt;/code&gt; again — an &lt;code&gt;OOMKilled&lt;/code&gt; during startup looks exactly like this.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The entrypoint is wrong.&lt;/strong&gt; &lt;code&gt;exec: "serve": executable file not found in $PATH&lt;/code&gt; appears in the pod's &lt;em&gt;events&lt;/em&gt;, not its logs, because the container never started:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;  kubectl -n &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;namespace&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; describe pod &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;pod&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; sed -n &lt;span class="s1"&gt;'/Events:/,$p'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Rule out the four impostors
&lt;/h2&gt;

&lt;p&gt;Before accepting "the application is broken", eliminate the four causes that produce an identical &lt;code&gt;CrashLoopBackOff&lt;/code&gt; without the application being at fault:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;A failing readiness or liveness probe.&lt;/strong&gt; A liveness probe that fails restarts a container that was working. The tell is a &lt;code&gt;Killing&lt;/code&gt; event citing the probe, and an application log that ends normally rather than with an error.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A memory limit the workload cannot live inside.&lt;/strong&gt; &lt;code&gt;reason: OOMKilled&lt;/code&gt;, &lt;code&gt;exitCode: 137&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A missing ConfigMap, Secret or volume.&lt;/strong&gt; The pod never reaches &lt;code&gt;Running&lt;/code&gt;; events show &lt;code&gt;CreateContainerConfigError&lt;/code&gt; or &lt;code&gt;FailedMount&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Node trouble.&lt;/strong&gt; Disk pressure, a full &lt;code&gt;emptyDir&lt;/code&gt;, or an evicted pod. &lt;code&gt;kubectl describe node&lt;/code&gt; shows the pressure conditions.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Each of these has a distinct signature in a &lt;em&gt;different&lt;/em&gt; data source — events, metrics, the pod spec, the node. That is the actual reason crash-loop triage is slow: the evidence that separates them is scattered across four tools, and you are switching between them under time pressure while a service is down.&lt;/p&gt;

&lt;h2&gt;
  
  
  Gathering all of it in one pass
&lt;/h2&gt;

&lt;p&gt;A crash loop rarely arrives as one alert: restarts, failed probes and unavailable replicas all fire, across every pod of the workload. Treat them as one incident first, and investigate that once rather than each alert on its own.&lt;/p&gt;

&lt;p&gt;A good investigation, by hand or automated, does not replay a checklist. It states the candidate causes as hypotheses, each with a prediction: &lt;em&gt;if this is an OOM kill, the last termination reason is &lt;code&gt;OOMKilled&lt;/code&gt; and the exit code is 137&lt;/em&gt;; &lt;em&gt;if a config value is missing, the previous container's last log line names it and the exit is the application's own&lt;/em&gt;; &lt;em&gt;if a release caused it, the restarts begin at the rollout&lt;/em&gt;. Then it reads the cluster, the previous container's logs, Prometheus, Loki and the rollout history to confirm or refute each one.&lt;/p&gt;

&lt;p&gt;The value is not that a model looked at your cluster. It is that the reads you would have made by hand were made within seconds of the alert, while the evidence was still there. Metrics get thin fast: series for a deleted pod disappear, and the terminated container's logs age out of retention. An investigation that starts at 03:05 sees things that an engineer starting at 09:00 cannot.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reading the result critically
&lt;/h2&gt;

&lt;p&gt;A crash-loop diagnosis is only worth having if you can check it. Three things make that possible.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The mechanism has to be stated, not the category.&lt;/strong&gt; "The application is misconfigured" is a restatement of the symptom. A mechanism names the value, the file, the line and the consequence, so you can disagree with it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The losing hypotheses have to be shown.&lt;/strong&gt; If the answer is a missing environment variable, you should be able to see that an OOM kill and a failing probe were considered, and which record ended each of them. A diagnosis that hides its refuted alternatives cannot be argued with.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Every claim has to lead to a query.&lt;/strong&gt; Each finding cites the tool call behind it: the exact &lt;code&gt;kubectl&lt;/code&gt; read or PromQL, the cluster, the time and the raw answer. You can re-run it and see the new answer diffed against the recorded one, which settles "is that still true?" in a few seconds.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Tip:&lt;/strong&gt; An empty answer, a source that failed and a source you never configured are three different facts. Only the first is evidence that something did not happen. If a source you needed could not be read, the honest result is "insufficient evidence", with the missing source named.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  A checklist you can keep
&lt;/h2&gt;

&lt;p&gt;For the next crash loop, in order:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;lastState.terminated.reason&lt;/code&gt; and &lt;code&gt;exitCode&lt;/code&gt; — split OOM from application exit.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;logs --previous&lt;/code&gt; — the last line the application wrote.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;describe pod&lt;/code&gt; events — probes, mounts, image pulls, scheduling.&lt;/li&gt;
&lt;li&gt;Memory working set against the limit — was there headroom at the kill?&lt;/li&gt;
&lt;li&gt;What changed — a rollout, a sync, an out-of-band edit to a ConfigMap.&lt;/li&gt;
&lt;li&gt;The restart gaps — widening means the kubelet's backoff, not an accelerating fault.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Step 5 is the one most often skipped and most often decisive. A crash loop that starts at a deploy boundary is a different investigation from one that starts on its own, and &lt;a href="https://alertigate.com/blog/argocd-out-of-sync-drift/" rel="noopener noreferrer"&gt;Argo CD's sync history will tell you which you have&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Related failures
&lt;/h2&gt;

&lt;p&gt;Crash loops sit next to two neighbours worth recognising on sight. A pod that never starts at all is not crash-looping — it is &lt;a href="https://alertigate.com/blog/kubernetes-pod-pending-unschedulable/" rel="noopener noreferrer"&gt;stuck in Pending, and the scheduler will say why&lt;/a&gt;. And a container killed at its memory ceiling deserves &lt;a href="https://alertigate.com/blog/kubernetes-oomkilled-exit-code-137/" rel="noopener noreferrer"&gt;its own reading of the evidence&lt;/a&gt;, because the metrics frequently look innocent.&lt;/p&gt;

&lt;p&gt;If you want the general version of the method rather than this one failure mode, the same discipline — enumerate causes, gather evidence per cause, eliminate explicitly — is written up in &lt;a href="https://alertigate.com/blog/kubernetes-root-cause-analysis/" rel="noopener noreferrer"&gt;root cause analysis for Kubernetes incidents&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;This article was written with AI assistance. It first appeared on &lt;a href="https://alertigate.com/blog/debug-crashloopbackoff-kubernetes/" rel="noopener noreferrer"&gt;alertigate.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>kubernetes</category>
      <category>devops</category>
      <category>sre</category>
      <category>troubleshooting</category>
    </item>
    <item>
      <title>My AI SRE said "HIGH confidence" and was wrong. What it took to make HIGH mean HIGH</title>
      <dc:creator>Feres Berbeche</dc:creator>
      <pubDate>Wed, 18 Nov 2026 15:27:11 +0000</pubDate>
      <link>https://dev.to/feresberbeche/my-ai-sre-said-high-confidence-and-was-wrong-what-it-took-to-make-high-mean-high-57p6</link>
      <guid>https://dev.to/feresberbeche/my-ai-sre-said-high-confidence-and-was-wrong-what-it-took-to-make-high-mean-high-57p6</guid>
      <description>&lt;p&gt;The one word an on-call engineer reads first in an AI root-cause report is the confidence. At 3 am, "HIGH" means "act on this". So the most important question about any AI SRE tool is not how often it is right. It is how often it says HIGH and is wrong.&lt;/p&gt;

&lt;p&gt;I build one, &lt;a href="https://alertigate.com" rel="noopener noreferrer"&gt;AlertiGate&lt;/a&gt;, a self-hosted tool that investigates Kubernetes alerts. When I finally measured that number, it was bad. This is what I found, what didn't fix it, and what did.&lt;/p&gt;

&lt;h2&gt;
  
  
  How the investigation works
&lt;/h2&gt;

&lt;p&gt;The details matter for what went wrong, so briefly:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;An alert fires. The model proposes a few hypotheses ("the new release cut the memory limit", "the node is under pressure").&lt;/li&gt;
&lt;li&gt;For each hypothesis it writes &lt;strong&gt;predictions&lt;/strong&gt;: things that must be true if the hypothesis is. "If the limit was cut, the pod spec's limit differs between revisions."&lt;/li&gt;
&lt;li&gt;It runs real queries against Prometheus, Loki and the Kubernetes API to test them.&lt;/li&gt;
&lt;li&gt;A second model call, the &lt;strong&gt;judge&lt;/strong&gt;, reads each prediction beside the query results and answers CONFIRMED, DISCONFIRMED, INCONCLUSIVE or UNTESTED.&lt;/li&gt;
&lt;li&gt;Confidence is computed &lt;strong&gt;in code&lt;/strong&gt; from the evidence: how many predictions were confirmed, how direct and complete the evidence is, and how clearly the hypothesis beats its rivals.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The model never states its own confidence. "I am 90% sure" from an LLM is a sampled token, not a probability, so the number comes from a pure function with test vectors that fail the build if a weight change moves a band.&lt;/p&gt;

&lt;p&gt;I thought that made HIGH safe. It didn't.&lt;/p&gt;

&lt;h2&gt;
  
  
  Measuring it
&lt;/h2&gt;

&lt;p&gt;I seed faults into a lab k3s cluster where I know the real cause: an OOM after a release lowered a memory limit, a broken liveness probe, a missing Git repository behind an Argo CD app, and so on. I also run fixtures in HolmesGPT's open test format. Each investigation costs a few cents.&lt;/p&gt;

&lt;p&gt;Then the tedious part: every hypothesis in &lt;strong&gt;57 runs&lt;/strong&gt; was labelled true, co-true or false against the known cause, one by one, under a written labelling rule.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Result: 9 false hypotheses reached HIGH, in 7 of the 57 runs.&lt;/strong&gt; Roughly one run in eight would have told an on-call engineer, with the strongest label available, to fix the wrong thing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why HIGH was wrong
&lt;/h2&gt;

&lt;p&gt;Tracing every false HIGH back to the records that carried it gave three causes. None of them was "the model hallucinated".&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Facts that are true whatever the cause.&lt;/strong&gt; "The pod restarted." "The release differs from revision 1." Those are true in almost every incident after a deploy. A false hypothesis that predicts them gets them confirmed, and its coverage looks excellent.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Shared symptoms.&lt;/strong&gt; OOMKilled supports "the limit was cut", "a memory leak" and "a traffic spike" equally. Evidence that supports every rival should count for none of them, and at first it counted for all of them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. The judge confirming half a prediction.&lt;/strong&gt; 7 of the 56 confirmations given to false hypotheses came from two-part predictions where only one part was shown: "RELEASE differs between revisions &lt;em&gt;and points to a larger index&lt;/em&gt;", confirmed from a record that showed only the first half.&lt;/p&gt;

&lt;h2&gt;
  
  
  What didn't work
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Telling the judge in the prompt.&lt;/strong&gt; I added a clear rule: "confirm a prediction of several parts only if every part is shown". Replayed on the same inputs, the judge kept confirming 5 of the 6 cases, 3 times out of 3 each, sometimes writing in its own rationale that a part was &lt;em&gt;not&lt;/em&gt; shown and confirming anyway.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Asking the model to mark its key prediction.&lt;/strong&gt; The idea: have the proposer mark the one prediction that tests its hypothesis's actual reason, and only allow HIGH once that one is confirmed. Re-scoring old runs offline, false HIGHs dropped from 9 to 1. It looked like the fix.&lt;/p&gt;

&lt;p&gt;Live, it made things worse. The proposer marked a fact true whatever the cause as its "reason" for &lt;strong&gt;11 of 12&lt;/strong&gt; false hypotheses, so the gate never closed on them. False HIGHs rose to 3 runs in 12, and some true causes got worse.&lt;/p&gt;

&lt;p&gt;That was the most useful lesson of the whole exercise: &lt;strong&gt;an offline re-score that assumes the model will follow a new instruction is not a measurement.&lt;/strong&gt; I had measured my assumption, not the model. I removed the gate.&lt;/p&gt;

&lt;h2&gt;
  
  
  What worked
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Structure the judge's answer, and enforce it in code
&lt;/h3&gt;

&lt;p&gt;Instead of a rule in prose, the judge now has to list the prediction's parts, each marked shown or not shown. The parser refuses CONFIRMED if any part is marked not shown. The model can still be wrong about a part, but it can no longer write "not shown" and confirm in the same breath.&lt;/p&gt;

&lt;p&gt;Overreaches on the replay set went from 21 of 24 to 3 of 24, and every control (true two-part predictions, fully shown) stayed confirmed.&lt;/p&gt;

&lt;h3&gt;
  
  
  Challenge every HIGH before showing it
&lt;/h3&gt;

&lt;p&gt;The rules that score evidence decide which hypotheses &lt;em&gt;could&lt;/em&gt; be HIGH. Each of those is now &lt;strong&gt;challenged&lt;/strong&gt;: the judge lists the hypothesis's own claims, the actual cause it asserts, and checks each against all of the investigation's records. HIGH stands only if every claim is shown. Otherwise the hypothesis is capped at MEDIUM, and the report says which claim wasn't shown.&lt;/p&gt;

&lt;p&gt;This attacks cause 1 directly: a hypothesis that got its coverage from facts true anyway still has to show its &lt;em&gt;own&lt;/em&gt; claim. Replayed, the 8 false hypotheses that had reached HIGH failed the challenge 24 times out of 24.&lt;/p&gt;

&lt;p&gt;It's a cap, not a refutation: the challenge can only lower a band, never call a hypothesis false. Of those 24 failures, only one said a claim was contradicted; the rest said it simply wasn't shown. That is good evidence for "not HIGH", and weak evidence for "false".&lt;/p&gt;

&lt;h3&gt;
  
  
  Fix the data before blaming the model
&lt;/h3&gt;

&lt;p&gt;The challenge also failed some &lt;em&gt;true&lt;/em&gt; causes, and one looked like a model mistake. The true cause claimed the process needs more than its 48 Mi limit, and the judge kept finding that not shown. Beside it sat a record saying memory was "flat at 4.26 MiB for five minutes".&lt;/p&gt;

&lt;p&gt;It was a data bug. The investigation's time window ended 30 minutes after the alert, so range queries asked Prometheus about the future. Prometheus fills each step with the latest sample within its 5-minute lookback, so one real sample became twenty points of a flat line. 18 of 62 metric records in one suite were stretched like that.&lt;/p&gt;

&lt;p&gt;The fix was in the code that turns query results into evidence: points after the moment of the query fold back into the one real sample, and a range wholly in the future can no longer be read as "nothing there". After it, the true causes passed the challenge 21 of 21.&lt;/p&gt;

&lt;p&gt;A related rule came from the same kind of digging: &lt;strong&gt;a reading only counts where it could have seen.&lt;/strong&gt; cAdvisor scrapes every 10 seconds; a container that is OOM-killed within a second of loading its index never shows its peak in any scrape. "Peak memory was only 4.3 MiB" refutes nothing there. The termination itself is the observation.&lt;/p&gt;

&lt;h3&gt;
  
  
  Don't let a false rival hold back a true cause
&lt;/h3&gt;

&lt;p&gt;The last fix ran the other way. Often the true cause sat at MEDIUM because a rival wasn't "clearly weaker". In every such case I checked, that rival was false. Now a hypothesis held back only by its rivals is challenged, and a rival that fails its own challenge is set aside. Replayed, those rivals failed 17 of 17 times and the true causes passed 15 of 15.&lt;/p&gt;

&lt;h2&gt;
  
  
  Results
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Zero false HIGHs in the 29 measured runs after the challenge shipped&lt;/strong&gt;, and none in the larger measurement runs since.&lt;/p&gt;

&lt;p&gt;The whole calibration effort, every paid run and replay, cost under $2 in model calls. The expensive part was the labelling.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it cost, and what's still open
&lt;/h2&gt;

&lt;p&gt;HIGH is now rarer than it should be. When the true cause's evidence is shared with its rivals (OOMKilled again), none of its predictions tell it apart, so it stays at MEDIUM with thin coverage. My hardest scenario passes in only 1 or 2 runs out of 5, mostly for this reason.&lt;/p&gt;

&lt;p&gt;I chose that trade on purpose: a true cause at MEDIUM costs the engineer a minute of checking; a false cause at HIGH costs them the incident.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you build or buy one of these
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Measure false HIGHs, not accuracy.&lt;/strong&gt; Label every hypothesis against a known cause. "It found the root cause 90% of the time" says nothing about what it told you the other 10%.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Never let the model state its own confidence.&lt;/strong&gt; Compute it from evidence you can show.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Put rules in structure and code, not in the prompt.&lt;/strong&gt; The judge broke a plainly written rule while describing the violation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Replay the step you changed.&lt;/strong&gt; If a fix depends on the model doing something new, only a live run measures it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check the data the model sees.&lt;/strong&gt; My worst "model error" was a query window ending in the future.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prefer a cap to a verdict.&lt;/strong&gt; A check that can only lower confidence is safe to add; one that can call things false needs far more proof.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;I'd especially like to hear from anyone who has measured confidence in their own tool: what did you count as a false HIGH, and what moved it?&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: I'm &lt;a href="https://alertigate.com" rel="noopener noreferrer"&gt;AlertiGate&lt;/a&gt;'s founder. It was built with heavy help from AI coding tools, which also did much of the measurement and labelling described here under my direction. This post was drafted with AI from the project's measurement notes and the code's own documentation.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>sre</category>
      <category>kubernetes</category>
      <category>ai</category>
      <category>observability</category>
    </item>
  </channel>
</rss>
