<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Kartik Verma on Medium]]></title>
        <description><![CDATA[Stories by Kartik Verma on Medium]]></description>
        <link>https://medium.com/@kartikvr20?source=rss-682a83b80d54------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*51SOAij2VyusLkXnyKfwHg.jpeg</url>
            <title>Stories by Kartik Verma on Medium</title>
            <link>https://medium.com/@kartikvr20?source=rss-682a83b80d54------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 22:32:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kartikvr20/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[When Container Images Fail to Pull on AKS: The Hidden Zstd + containerd Mismatch]]></title>
            <link>https://medium.com/@kartikvr20/when-container-images-fail-to-pull-on-aks-the-hidden-zstd-containerd-mismatch-fb04492ef385?source=rss-682a83b80d54------2</link>
            <guid isPermaLink="false">https://medium.com/p/fb04492ef385</guid>
            <category><![CDATA[docker-image]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[zstd]]></category>
            <category><![CDATA[containerd]]></category>
            <category><![CDATA[azure-kubernetes-service]]></category>
            <dc:creator><![CDATA[Kartik Verma]]></dc:creator>
            <pubDate>Tue, 20 Jan 2026 08:57:01 GMT</pubDate>
            <atom:updated>2026-01-20T08:57:01.144Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0slxOO8OBaF6PgOAuV_Orw.png" /></figure><p>Over the past week, I’ve been testing <strong>DHI on Azure Kubernetes Service (AKS)</strong>. During this work, I ran into a particularly interesting container runtime issue — one that at first looked like a corrupted image but ultimately turned out to be a <strong>compression format mismatch between container images and AKS’s container runtime</strong>.</p><p>This post breaks down what happened, why it happened, and how to fix it.</p><h4><strong>The Problem: Pods Failing to Start</strong></h4><p>Several pods suddenly started failing during image pull with the following error:</p><pre>Failed to pull and unpack image &quot;&lt;image_name&gt;&quot;:<br>number of layers and diffIDs don&#39;t match: 3 != 9</pre><p>At face value, this error suggests an inconsistency in the image manifest — usually a sign of a corrupted or incorrectly built image. But the image worked perfectly fine on my minikube cluster. So, the problem had to be somewhere else.</p><h4><strong>Inspecting the Image Manifest</strong></h4><p>Running:</p><pre>docker manifest inspect &lt;image&gt;@&lt;sha256&gt;</pre><p>revealed the layer structure:</p><ul><li><strong>9 total layers</strong></li><li><strong>6 layers compressed using zstd</strong></li><li><strong>3 layers compressed using gzip</strong></li></ul><p>Example media types:</p><pre>application/vnd.docker.image.rootfs.diff.tar.zstd<br>application/vnd.docker.image.rootfs.diff.tar.gzip</pre><p>Now here’s the interesting part:</p><p>The container runtime successfully pulled the <strong>3 gzip layers </strong>but failed to pull the <strong>6 zstd layers</strong>.</p><p>Hence:</p><pre>Pulled layers = 3<br>Expected diffIDs = 9<br>→ number of layers and diffIDs don&#39;t match: 3 != 9</pre><p>So, the image itself was valid — the runtime simply <strong>did not support zstd-compressed layers</strong>.</p><h4><strong>Root Cause: containerd Without Zstd Support in AKS</strong></h4><p>AKS uses <strong>containerd</strong> as its container runtime.</p><p>Support for pulling <strong>zstd-compressed image layers</strong> was:</p><ul><li>Added natively in <strong>containerd v2.0.1</strong></li><li>Backported to <strong>containerd v1.7.29</strong></li></ul><p>Relevant upstream PRs:</p><ul><li><a href="https://github.com/containerd/containerd/pull/12018">https://github.com/containerd/containerd/pull/12018</a></li><li><a href="https://github.com/containerd/containerd/pull/11068">https://github.com/containerd/containerd/pull/11068</a></li></ul><p>However — and this is the key point — <br> <strong>AKS’s containerd v1.7.29 was built and released before the zstd backport was merged</strong>.</p><p>So, although AKS reports containerd v1.7.29, the binary shipped in AKS <strong>does not include zstd support</strong>.</p><p>Result:</p><ul><li>gzip layers → pulled successfully</li><li>zstd layers → failed to unpack</li><li>manifest mismatch error → pods fail to start</li></ul><h4><strong>Why This Matters</strong></h4><p>Modern container build tools (like BuildKit, Docker, Kaniko, etc.) increasingly use <strong>zstd compression</strong> because:</p><ul><li>Faster decompression</li><li>Smaller layer sizes</li><li>Better image pull performance</li></ul><p>If your runtime doesn’t support zstd — your images simply won’t run.</p><h4><strong>The Solution: Move to Ubuntu 24.04 Node Pools</strong></h4><p>AKS recently introduced <strong>Ubuntu 24.04 (ubuntu2404) OS SKU</strong>, which ships with:</p><ul><li><strong>containerd v2.0</strong></li><li><strong>Full zstd layer support</strong></li></ul><p>Ubuntu 24.04 node pools are currently in <strong>preview </strong>and will become the default OS SKU in <strong>AKS Kubernetes v1.35 GA</strong>.</p><p>Azure tracking issues:</p><ul><li><a href="https://github.com/Azure/AKS/issues/4700">https://github.com/Azure/AKS/issues/4700</a></li><li><a href="https://github.com/Azure/AKS/issues/4314">https://github.com/Azure/AKS/issues/4314</a></li></ul><h4><strong>Enabling Ubuntu 24.04 Node Pools on AKS</strong></h4><p><strong>Step 1 — Enable the preview feature</strong></p><pre>az feature register \<br>  --namespace Microsoft.ContainerService \<br>  --name Ubuntu2404Preview</pre><p>Wait for registration to complete:</p><pre>az feature show \<br>  --namespace Microsoft.ContainerService \<br>  --name Ubuntu2404Preview \<br>  --query properties.state</pre><p><strong>Step 2 — Update your node pool OS SKU</strong></p><pre>az aks nodepool update \<br>  --resource-group &lt;resource_group&gt; \<br>  --cluster-name &lt;cluster_name&gt; \<br>  --name &lt;nodepool_name&gt; \<br>  --os-sku Ubuntu2404</pre><p>Once the new nodes are created, your zstd-compressed images will pull and unpack correctly.</p><h3>Final Takeaway</h3><p>If your container images use <strong>zstd compression</strong>, your AKS nodes <strong>must</strong> run a container runtime that supports it.</p><p>Today, that means:</p><ul><li>Ubuntu 22.04 node pools → containerd v1.7.x → <strong>no zstd support</strong></li><li>Ubuntu 24.04 node pools → containerd v2.0 → <strong>zstd supported</strong></li></ul><p>As container image tooling continues moving toward zstd by default, upgrading your runtime environment is no longer optional — it’s essential.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fb04492ef385" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>