<?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: Naveed Ahmed</title>
    <description>The latest articles on DEV Community by Naveed Ahmed (@naveedkumbhar).</description>
    <link>https://dev.to/naveedkumbhar</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%2F316298%2F0be009f8-20b4-41e7-9ef7-16a05f7314ab.png</url>
      <title>DEV Community: Naveed Ahmed</title>
      <link>https://dev.to/naveedkumbhar</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/naveedkumbhar"/>
    <language>en</language>
    <item>
      <title>KEDA Kubernetes Tutorial: Scale to Zero with HPA &amp; SQS</title>
      <dc:creator>Naveed Ahmed</dc:creator>
      <pubDate>Sat, 28 Nov 2026 07:07:41 +0000</pubDate>
      <link>https://dev.to/naveedkumbhar/keda-kubernetes-tutorial-scale-to-zero-with-hpa-sqs-61k</link>
      <guid>https://dev.to/naveedkumbhar/keda-kubernetes-tutorial-scale-to-zero-with-hpa-sqs-61k</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://blog.naveedkumbhar.com/keda-kubernetes-guide/" rel="noopener noreferrer"&gt;Naveed Ahmed's Engineering Blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Imagine a Kubernetes Deployment running queue consumers.&lt;/p&gt;

&lt;p&gt;CPU usage is low, but the queue contains thousands of messages.&lt;/p&gt;

&lt;p&gt;If the HPA relies only on CPU, it may not scale the application when you actually need more workers.&lt;/p&gt;

&lt;p&gt;KEDA solves a different part of the autoscaling problem: it can use external signals such as Kafka consumer lag, RabbitMQ messages, AWS SQS queue depth and Prometheus queries.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. How KEDA Works
&lt;/h2&gt;

&lt;p&gt;For a Deployment managed by a &lt;code&gt;ScaledObject&lt;/code&gt;, KEDA has two main responsibilities:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The KEDA operator evaluates event-source activation and handles scaling between zero and one replica.&lt;/li&gt;
&lt;li&gt;The KEDA metrics API server exposes external metrics so the Kubernetes HPA can scale active workloads.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The basic sequence is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Message queue / external metric
              |
              v
         KEDA scaler
              |
       +------+------+
       |             |
       v             v
   Activation     External metric
     0 → 1             |
                       v
                  Kubernetes HPA
                       |
                       v
                   More Pods
                       |
                       v
                 Node autoscaler
                (if capacity needed)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  2. Install KEDA With Helm
&lt;/h2&gt;

&lt;p&gt;Add the official chart repository:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;helm repo add kedacore https://kedacore.github.io/charts
helm repo update
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Review and pin a compatible chart version before production installation.&lt;/p&gt;

&lt;p&gt;A basic example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;helm upgrade --install keda kedacore/keda \
  --namespace keda \
  --create-namespace
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Verify the installation:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;kubectl get pods -n keda
kubectl get apiservices &lt;span class="o"&gt;|&lt;/span&gt; grep external.metrics
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Review cluster compatibility and the Helm chart's current values before enabling additional settings.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Create an SQS ScaledObject
&lt;/h2&gt;

&lt;p&gt;Suppose an &lt;code&gt;orders-worker&lt;/code&gt; Deployment reads from Amazon SQS.&lt;/p&gt;

&lt;p&gt;A basic &lt;code&gt;ScaledObject&lt;/code&gt; might look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;apiVersion&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;keda.sh/v1alpha1&lt;/span&gt;
&lt;span class="na"&gt;kind&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ScaledObject&lt;/span&gt;
&lt;span class="na"&gt;metadata&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;orders-sqs-scaler&lt;/span&gt;
  &lt;span class="na"&gt;namespace&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;workers&lt;/span&gt;
&lt;span class="na"&gt;spec&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;scaleTargetRef&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;orders-worker&lt;/span&gt;
  &lt;span class="na"&gt;pollingInterval&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;15&lt;/span&gt;
  &lt;span class="na"&gt;cooldownPeriod&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;300&lt;/span&gt;
  &lt;span class="na"&gt;minReplicaCount&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
  &lt;span class="na"&gt;maxReplicaCount&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;50&lt;/span&gt;
  &lt;span class="na"&gt;triggers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;aws-sqs-queue&lt;/span&gt;
      &lt;span class="na"&gt;metadata&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="na"&gt;queueURL&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;https://sqs.us-east-1.amazonaws.com/123456789012/orders-prod&lt;/span&gt;
        &lt;span class="na"&gt;awsRegion&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;us-east-1&lt;/span&gt;
        &lt;span class="na"&gt;queueLength&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"5"&lt;/span&gt;
      &lt;span class="na"&gt;authenticationRef&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;orders-sqs-auth&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This example assumes a compatible KEDA version and an existing &lt;code&gt;TriggerAuthentication&lt;/code&gt; named &lt;code&gt;orders-sqs-auth&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Use supported AWS workload identity or another approved authentication method rather than embedding access keys into the manifest.&lt;/p&gt;

&lt;p&gt;The scaling threshold is a starting value, not a universally correct production setting.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. KEDA vs HPA vs Karpenter
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Component&lt;/th&gt;
&lt;th&gt;Main responsibility&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;KEDA&lt;/td&gt;
&lt;td&gt;Trigger activation and event-driven autoscaling&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;HPA&lt;/td&gt;
&lt;td&gt;Scale active application Pods based on metrics&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Karpenter&lt;/td&gt;
&lt;td&gt;Provision and manage EC2 node capacity&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;KEDA can request more application replicas without automatically ensuring that the cluster has enough room to schedule them.&lt;/p&gt;

&lt;p&gt;If Pods remain Pending, investigate scheduling limits, node pools, instance availability and node provisioning.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Why Workers Stay at Zero
&lt;/h2&gt;

&lt;p&gt;A &lt;code&gt;ScaledObject&lt;/code&gt; that never activates may have an authentication, trigger or metrics issue.&lt;/p&gt;

&lt;p&gt;Start with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;kubectl get scaledobjects -A
kubectl describe scaledobject orders-sqs-scaler -n workers
kubectl get hpa -n workers
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then inspect the operator logs:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;kubectl logs -n keda \
  -l &lt;span class="nv"&gt;app&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;keda-operator \
  --tail=100
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The exact labels and namespace depend on your installation.&lt;/p&gt;

&lt;p&gt;Check whether KEDA can access the external event source and whether the trigger actually reports activation.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Scale-to-Zero Has Trade-Offs
&lt;/h2&gt;

&lt;p&gt;Scale-to-zero can reduce idle resource usage.&lt;/p&gt;

&lt;p&gt;But a newly activated workload still has to start.&lt;/p&gt;

&lt;p&gt;That may include scheduling, pulling an image, establishing connections, and initializing the application.&lt;/p&gt;

&lt;p&gt;If latency is sensitive, consider keeping a minimum replica count or pre-warming before predictable peaks.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Avoid Conflicting Controllers
&lt;/h2&gt;

&lt;p&gt;Do not configure an independent HPA to control the same Deployment as a KEDA-managed &lt;code&gt;ScaledObject&lt;/code&gt; without an explicitly supported ownership model.&lt;/p&gt;

&lt;p&gt;Competing controllers can create confusing scaling behavior.&lt;/p&gt;




&lt;h2&gt;
  
  
  Read the Complete KEDA Guide
&lt;/h2&gt;

&lt;p&gt;My full tutorial also explains AKS integration, TriggerAuthentication, Prometheus scaling, predictive autoscaling, Kubernetes compatibility and production troubleshooting.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://blog.naveedkumbhar.com/keda-kubernetes-guide/" rel="noopener noreferrer"&gt;Read KEDA Kubernetes: Event-Driven Autoscaling Guide&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Official reference: &lt;a href="https://keda.sh/docs/" rel="noopener noreferrer"&gt;KEDA Documentation&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;What external signal would give you the most useful autoscaling behavior in your cluster?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Written by Naveed Ahmed — DevOps &amp;amp; Platform Engineering&lt;/em&gt;&lt;/p&gt;

</description>
      <category>kubernetes</category>
      <category>devops</category>
      <category>aws</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>NFS2ROOT CVE-2026-99362: Linux NFS Security Checklist</title>
      <dc:creator>Naveed Ahmed</dc:creator>
      <pubDate>Sat, 28 Nov 2026 06:07:29 +0000</pubDate>
      <link>https://dev.to/naveedkumbhar/nfs2root-cve-2026-99362-linux-nfs-security-checklist-1h63</link>
      <guid>https://dev.to/naveedkumbhar/nfs2root-cve-2026-99362-linux-nfs-security-checklist-1h63</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://blog.naveedkumbhar.com/nfs2root/" rel="noopener noreferrer"&gt;Naveed Ahmed's Engineering Blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;NFS servers are easy to overlook during infrastructure security reviews.&lt;/p&gt;

&lt;p&gt;They're often deployed as shared storage for applications, backups, build systems, and Kubernetes persistent volumes.&lt;/p&gt;

&lt;p&gt;But they also run a network-facing service inside the Linux kernel.&lt;/p&gt;

&lt;p&gt;NFS2ROOT, tracked as CVE-2026-99362, is a reminder that storage infrastructure deserves the same attention as application servers.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. What Is NFS2ROOT?
&lt;/h2&gt;

&lt;p&gt;NFS2ROOT is a critical out-of-bounds write vulnerability in the Linux kernel's NFS server, &lt;code&gt;nfsd&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The affected code processes NFSv4.1 and NFSv4.2 session requests.&lt;/p&gt;

&lt;p&gt;Researchers demonstrated a remote-root exploit chain, with a reported CVSS score of 9.8.&lt;/p&gt;

&lt;p&gt;This is not a generic vulnerability affecting every system with NFS client utilities installed.&lt;/p&gt;

&lt;p&gt;The relevant question is whether a host runs an affected NFS server that can be reached over the network.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Check the Running Kernel
&lt;/h2&gt;

&lt;p&gt;Start with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;uname -r
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Check the kernel against the security advisories for your Linux distribution.&lt;/p&gt;

&lt;p&gt;Upstream fixes have been published across supported branches, but vendors may backport the patch into their own kernel packages.&lt;/p&gt;

&lt;p&gt;Don't rely exclusively on a numerical comparison of &lt;code&gt;uname -r&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Check Whether NFS Is Running
&lt;/h2&gt;

&lt;p&gt;Inspect TCP port 2049:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo ss -ltnp &lt;span class="s1"&gt;'sport = :2049'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Inspect active NFS versions:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;cat /proc/fs/nfsd/versions
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On an active NFS server, check for &lt;code&gt;+4.1&lt;/code&gt; or &lt;code&gt;+4.2&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;You can also review NFS service status:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;systemctl status nfs-server
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These are local diagnostic commands for systems you administer.&lt;/p&gt;

&lt;p&gt;Check network-level reachability separately. A listening service is not necessarily reachable from every network.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Prioritize Exposed Storage Infrastructure
&lt;/h2&gt;

&lt;p&gt;Check systems such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Self-managed Linux file servers&lt;/li&gt;
&lt;li&gt;NAS devices running affected Linux kernels&lt;/li&gt;
&lt;li&gt;Kubernetes NFS storage servers&lt;/li&gt;
&lt;li&gt;Virtual machine and backup infrastructure&lt;/li&gt;
&lt;li&gt;Build systems using shared NFS exports&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The most urgent cases are vulnerable NFS servers reachable from untrusted networks.&lt;/p&gt;

&lt;p&gt;Also assess internal reachability, especially where compromised workloads could access storage services.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Apply the Vendor Security Fix
&lt;/h2&gt;

&lt;p&gt;The permanent remediation is a patched Linux kernel.&lt;/p&gt;

&lt;p&gt;Use the official security advisory for your distribution to select the correct package.&lt;/p&gt;

&lt;p&gt;Plan a controlled reboot to activate the updated kernel.&lt;/p&gt;

&lt;p&gt;After reboot:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;uname -r
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Confirm the running kernel contains the fix.&lt;/p&gt;

&lt;p&gt;For NAS appliances, follow the vendor's firmware and operating-system update process.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. If You Cannot Patch Immediately
&lt;/h2&gt;

&lt;p&gt;Restrict TCP port 2049 to approved NFS clients or storage networks.&lt;/p&gt;

&lt;p&gt;If NFS is not needed, consider stopping the server.&lt;/p&gt;

&lt;p&gt;Disabling NFSv4.1 and v4.2 may also reduce exposure where the remaining protocol configuration is supported.&lt;/p&gt;

&lt;p&gt;Before making changes, evaluate the effect on mounted filesystems and active applications.&lt;/p&gt;

&lt;p&gt;Unexpectedly interrupting an NFS server can affect application availability and data operations.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Kubernetes Considerations
&lt;/h2&gt;

&lt;p&gt;A Kubernetes workload using an NFS-backed PersistentVolume does not necessarily mean that the worker node runs a vulnerable NFS server.&lt;/p&gt;

&lt;p&gt;Identify the actual NFS server.&lt;/p&gt;

&lt;p&gt;It may be a separate VM, a NAS appliance, a Kubernetes storage Pod, or a managed storage service.&lt;/p&gt;

&lt;p&gt;Check the server's kernel and patch status.&lt;/p&gt;

&lt;p&gt;Review node networking and firewall controls.&lt;/p&gt;

&lt;p&gt;Pod NetworkPolicy enforcement may not cover NFS connections originating from a node's kernel-mounted filesystem.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. Investigate Suspicious Activity
&lt;/h2&gt;

&lt;p&gt;Relevant indicators can include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Unexpected &lt;code&gt;nfsd&lt;/code&gt; kernel warnings&lt;/li&gt;
&lt;li&gt;Kernel memory corruption messages&lt;/li&gt;
&lt;li&gt;Unusual system process execution&lt;/li&gt;
&lt;li&gt;Unexpected changes to privileged accounts&lt;/li&gt;
&lt;li&gt;Suspicious network connections from storage hosts&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A kernel warning alone does not prove compromise.&lt;/p&gt;

&lt;p&gt;Preserve evidence if you suspect exploitation.&lt;/p&gt;




&lt;h2&gt;
  
  
  Read the Full NFS2ROOT Guide
&lt;/h2&gt;

&lt;p&gt;My complete article covers the underlying vulnerability, affected kernel branches, Linux and NAS assessment, Kubernetes storage risks, mitigations, and incident-response considerations.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://blog.naveedkumbhar.com/nfs2root/" rel="noopener noreferrer"&gt;Read NFS2ROOT: Linux Kernel RCE &amp;amp; Production Fix&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Research and advisories:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://opensec.in/blog/nfs2root-cve-2026-99362" rel="noopener noreferrer"&gt;OpenSec NFS2ROOT Research&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://nvd.nist.gov/vuln/detail/CVE-2026-99362" rel="noopener noreferrer"&gt;NVD CVE-2026-99362&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;How does your team verify kernel security updates on NFS servers?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Written by Naveed Ahmed — DevOps &amp;amp; Platform Engineering&lt;/em&gt;&lt;/p&gt;

</description>
      <category>linux</category>
      <category>security</category>
      <category>devops</category>
      <category>kubernetes</category>
    </item>
    <item>
      <title>Argo Rollouts: Canary, Blue-Green &amp; Prometheus Guide</title>
      <dc:creator>Naveed Ahmed</dc:creator>
      <pubDate>Fri, 27 Nov 2026 14:38:55 +0000</pubDate>
      <link>https://dev.to/naveedkumbhar/argo-rollouts-canary-blue-green-prometheus-guide-54h2</link>
      <guid>https://dev.to/naveedkumbhar/argo-rollouts-canary-blue-green-prometheus-guide-54h2</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://blog.naveedkumbhar.com/argo-rollouts-guide/" rel="noopener noreferrer"&gt;Naveed Ahmed's Engineering Blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;A Kubernetes Deployment can tell you whether new Pods are becoming ready.&lt;/p&gt;

&lt;p&gt;But what if the Pods pass their health checks while the application starts returning more HTTP 500 errors?&lt;/p&gt;

&lt;p&gt;That's a problem progressive delivery can help address.&lt;/p&gt;

&lt;p&gt;Argo Rollouts extends Kubernetes deployment behavior with canary releases, blue-green strategies and metric-driven analysis.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Argo Rollouts vs Kubernetes Deployment
&lt;/h2&gt;

&lt;p&gt;A standard rolling update gradually replaces old Pods with new ones.&lt;/p&gt;

&lt;p&gt;Argo Rollouts introduces a &lt;code&gt;Rollout&lt;/code&gt; custom resource that can control release stages and integrate with external traffic routing and metrics.&lt;/p&gt;

&lt;p&gt;For example, a canary might follow this sequence:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;New application image
        |
        v
10% canary exposure
        |
        v
Evaluate error rate
        |
   +----+----+
   |         |
 Pass       Fail
   |         |
   v         v
50%       Abort
   |
   v
100%
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This requires an appropriate release strategy, configured metric provider and, for fine-grained traffic weights, a compatible traffic router.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Install the Controller
&lt;/h2&gt;

&lt;p&gt;Argo Rollouts is available through its Helm chart:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;helm repo add argo https://argoproj.github.io/argo-helm
helm repo update
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For production, pin a reviewed chart version and controller image. Review its RBAC permissions, high availability, metrics and supported Kubernetes versions before deploying.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. A Basic Canary Strategy
&lt;/h2&gt;

&lt;p&gt;A simplified Rollout strategy can look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;strategy&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;canary&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;steps&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;setWeight&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;pause&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;duration&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;3m&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;setWeight&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;50&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;pause&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;duration&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;5m&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is only the strategy section of a Rollout manifest.&lt;/p&gt;

&lt;p&gt;Without an external traffic manager, weights are approximated through ReplicaSet sizing. A 10% setting does not guarantee exactly 10% of user requests.&lt;/p&gt;

&lt;p&gt;For finer control, configure a supported ingress controller, service mesh, or Gateway API traffic-routing plugin.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Blue-Green Deployment
&lt;/h2&gt;

&lt;p&gt;Blue-green uses two application versions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Active: receives production traffic.&lt;/li&gt;
&lt;li&gt;Preview: allows the new version to be tested before cutover.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A strategy may reference separate Kubernetes Services:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;strategy&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;blueGreen&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;activeService&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;checkout-active&lt;/span&gt;
    &lt;span class="na"&gt;previewService&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;checkout-preview&lt;/span&gt;
    &lt;span class="na"&gt;autoPromotionEnabled&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;
    &lt;span class="na"&gt;scaleDownDelaySeconds&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;120&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The old ReplicaSet can remain available during the configured scale-down delay.&lt;/p&gt;

&lt;p&gt;This helps with rollback readiness, but doesn't automatically reverse database schema changes or external side effects.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Automated Analysis With Prometheus
&lt;/h2&gt;

&lt;p&gt;Argo Rollouts can create an &lt;code&gt;AnalysisRun&lt;/code&gt; from an &lt;code&gt;AnalysisTemplate&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The analysis queries a metrics backend, evaluates the result and determines whether the rollout should continue.&lt;/p&gt;

&lt;p&gt;Examples include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;HTTP 5xx error rate&lt;/li&gt;
&lt;li&gt;Request latency&lt;/li&gt;
&lt;li&gt;Failed transactions&lt;/li&gt;
&lt;li&gt;Queue processing errors&lt;/li&gt;
&lt;li&gt;Application-specific SLO indicators&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For a low-traffic canary, pay attention to missing or empty metrics.&lt;/p&gt;

&lt;p&gt;A zero denominator or an empty Prometheus vector can produce misleading or inconclusive results.&lt;/p&gt;

&lt;p&gt;Design explicit missing-data behavior and test the analysis before using it as an automatic production gate.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Argo CD vs Argo Rollouts
&lt;/h2&gt;

&lt;p&gt;These two projects have different responsibilities.&lt;/p&gt;

&lt;p&gt;Argo CD synchronizes the desired Kubernetes configuration from Git.&lt;/p&gt;

&lt;p&gt;Argo Rollouts controls how new application versions are introduced to production traffic.&lt;/p&gt;

&lt;p&gt;You can use both together:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Git Repository
      |
      v
Argo CD
      |
      v
Kubernetes Rollout
      |
      v
Argo Rollouts Controller
      |
      v
Canary / Blue-Green + Analysis
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Review Argo CD diff settings for fields intentionally modified by the Rollouts controller or traffic integration.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Troubleshoot a Stalled Rollout
&lt;/h2&gt;

&lt;p&gt;Install the official kubectl plugin and inspect the release:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;kubectl argo rollouts get rollout checkout-api \
  -n prod --watch
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Check AnalysisRuns:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;kubectl get analysisruns -n prod
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Review Kubernetes events:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;kubectl get events -n prod \
  --sort-by=.metadata.creationTimestamp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Check the active rollout stage, metric query results, routing resources and ReplicaSet health.&lt;/p&gt;

&lt;p&gt;Don't promote or abort a production rollout without confirming the intended effect.&lt;/p&gt;




&lt;h2&gt;
  
  
  Read the Full Production Guide
&lt;/h2&gt;

&lt;p&gt;My complete article covers Argo Rollouts installation with Helm, detailed canary YAML, blue-green Services, Prometheus and Datadog analysis, GitOps integration, and common SRE troubleshooting scenarios.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://blog.naveedkumbhar.com/argo-rollouts-guide/" rel="noopener noreferrer"&gt;Read Argo Rollouts: Canary, Blue-Green &amp;amp; Progressive Delivery&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Official reference: &lt;a href="https://argoproj.github.io/argo-rollouts/" rel="noopener noreferrer"&gt;Argo Rollouts Documentation&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;How are you currently validating production releases beyond readiness checks?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Written by Naveed Ahmed — DevOps &amp;amp; Platform Engineering&lt;/em&gt;&lt;/p&gt;

</description>
      <category>kubernetes</category>
      <category>devops</category>
      <category>gitops</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Helm Interview Questions: 7 Production Scenarios Explained</title>
      <dc:creator>Naveed Ahmed</dc:creator>
      <pubDate>Thu, 26 Nov 2026 04:07:20 +0000</pubDate>
      <link>https://dev.to/naveedkumbhar/helm-interview-questions-7-production-scenarios-explained-1d4f</link>
      <guid>https://dev.to/naveedkumbhar/helm-interview-questions-7-production-scenarios-explained-1d4f</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://blog.naveedkumbhar.com/helm-interview-questions-and-answers/" rel="noopener noreferrer"&gt;Naveed Ahmed's Engineering Blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Most Kubernetes engineers have used Helm.&lt;/p&gt;

&lt;p&gt;But using a chart and troubleshooting a failed release are two different skills.&lt;/p&gt;

&lt;p&gt;Here are seven questions worth practicing before a DevOps or SRE interview.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Why Did Helm 3 Remove Tiller?
&lt;/h2&gt;

&lt;p&gt;Helm 2 used a server-side component called Tiller.&lt;/p&gt;

&lt;p&gt;Helm 3 removed it and uses the Kubernetes API with the permissions of the authenticated user.&lt;/p&gt;

&lt;p&gt;That simplified the architecture and removed the need for a separate privileged in-cluster Tiller service.&lt;/p&gt;

&lt;p&gt;For a senior interview, explain the security implications and how Kubernetes RBAC still controls deployment operations.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. What Happens After a Manual &lt;code&gt;kubectl scale&lt;/code&gt;?
&lt;/h2&gt;

&lt;p&gt;Imagine an engineer scales a Deployment from three replicas to eight during an incident.&lt;/p&gt;

&lt;p&gt;Later, the CI pipeline runs another Helm upgrade.&lt;/p&gt;

&lt;p&gt;Will the replica count return to three?&lt;/p&gt;

&lt;p&gt;It depends on the chart and rendered manifests.&lt;/p&gt;

&lt;p&gt;Helm's three-way merge takes the previous release, current live state, and new target manifest into account.&lt;/p&gt;

&lt;p&gt;If the target chart explicitly manages the replica field, the upgrade may reconcile it back to the chart's value.&lt;/p&gt;

&lt;p&gt;If an HPA owns scaling, charts commonly omit &lt;code&gt;spec.replicas&lt;/code&gt; when autoscaling is enabled.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. How Do You Troubleshoot a Failed Release?
&lt;/h2&gt;

&lt;p&gt;Start with evidence:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;helm status my-app -n production

helm &lt;span class="nb"&gt;history&lt;/span&gt; my-app -n production

kubectl get events -n production \
  --sort-by=.metadata.creationTimestamp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then inspect failing Pods, Jobs, hooks, quotas, admission errors, and readiness conditions.&lt;/p&gt;

&lt;p&gt;Don't immediately rerun the upgrade or delete Helm release metadata.&lt;/p&gt;

&lt;p&gt;Understand what failed first.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. How Does Helm Rollback Work?
&lt;/h2&gt;

&lt;p&gt;Helm maintains release revisions.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;helm &lt;span class="nb"&gt;history&lt;/span&gt; my-app -n production
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A rollback to an earlier revision creates a new revision representing the rollback.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;helm rollback my-app 2 -n production
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is a real cluster-changing command. Use it only after reviewing release history and the operational impact.&lt;/p&gt;

&lt;p&gt;Also remember that rolling back Kubernetes manifests won't necessarily restore external database changes or deleted persistent data.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. How Do Values Files Work?
&lt;/h2&gt;

&lt;p&gt;A common deployment uses environment-specific values:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;helm template my-app ./chart \
  -f values.common.yaml \
  -f values.production.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The later values file overrides conflicting entries from the earlier file.&lt;/p&gt;

&lt;p&gt;Command-line overrides can also take precedence.&lt;/p&gt;

&lt;p&gt;For production workflows, inspect the rendered output rather than assuming your overrides produced the intended configuration.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. How Do You Validate a Chart Before Deployment?
&lt;/h2&gt;

&lt;p&gt;Use Helm lint and local rendering:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;helm lint ./chart

helm template my-app ./chart \
  -f values.production.yaml &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; rendered.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then apply your organization's schema checks, policy testing, and security scans to the rendered manifests.&lt;/p&gt;

&lt;p&gt;A syntactically valid chart can still create an insecure Deployment.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. When Should You Use an Operator Instead of Helm?
&lt;/h2&gt;

&lt;p&gt;Helm is useful for packaging and managing application releases.&lt;/p&gt;

&lt;p&gt;An Operator is more appropriate when a workload needs custom, continuous reconciliation of operational state—for example, sophisticated database failover or cluster lifecycle management.&lt;/p&gt;

&lt;p&gt;The two aren't necessarily competitors.&lt;/p&gt;

&lt;p&gt;An Operator itself may be installed using a Helm chart.&lt;/p&gt;




&lt;h2&gt;
  
  
  Practice All 40 Questions
&lt;/h2&gt;

&lt;p&gt;My complete guide explores Helm architecture, Go templates, merge behavior, release recovery, values, secrets, OCI registries, Argo CD, Helmfile, and Kubernetes Operators.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://blog.naveedkumbhar.com/helm-interview-questions-and-answers/" rel="noopener noreferrer"&gt;Read 40 Helm Interview Questions and Answers&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You can also practice more scenarios on the &lt;a href="https://interview.naveedkumbhar.com/" rel="noopener noreferrer"&gt;DevOps Interview Hub&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Which Helm failure have you learned the most from?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Written by Naveed Ahmed — DevOps &amp;amp; Platform Engineering&lt;/em&gt;&lt;/p&gt;

</description>
      <category>kubernetes</category>
      <category>devops</category>
      <category>helm</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>How to Use Jev AI: Python, Typed Decisions &amp; DevOps</title>
      <dc:creator>Naveed Ahmed</dc:creator>
      <pubDate>Wed, 25 Nov 2026 06:37:44 +0000</pubDate>
      <link>https://dev.to/naveedkumbhar/how-to-use-jev-ai-python-typed-decisions-devops-1cl5</link>
      <guid>https://dev.to/naveedkumbhar/how-to-use-jev-ai-python-typed-decisions-devops-1cl5</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://blog.naveedkumbhar.com/how-to-use-jev/" rel="noopener noreferrer"&gt;Naveed Ahmed's Engineering Blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Not every AI-powered application needs a model that generates paragraphs of text.&lt;/p&gt;

&lt;p&gt;Sometimes you need an answer that fits a specific type.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Is an incident likely related to data loss?&lt;/li&gt;
&lt;li&gt;Which failure domain best matches these logs?&lt;/li&gt;
&lt;li&gt;How severe is a deployment risk?&lt;/li&gt;
&lt;li&gt;Should a tool call be sent for manual review?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;TypeSafe AI's Jev is designed around this style of evaluation.&lt;/p&gt;

&lt;p&gt;Let's look at the concepts and how they apply to DevOps.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. What Is Jev?
&lt;/h2&gt;

&lt;p&gt;Jev is a decision-oriented AI model.&lt;/p&gt;

&lt;p&gt;Rather than generating conversational answers, it evaluates a supplied state against typed questions.&lt;/p&gt;

&lt;p&gt;The basic flow is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Application state
       |
       v
Typed questions
       |
       v
Jev decision model
       |
       v
Structured answers
       |
       v
Application policy
       |
       v
Proceed / Review / Block
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The final action remains the responsibility of your application.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Understand Noul, Choice and Score
&lt;/h2&gt;

&lt;p&gt;Jev's core question types are:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Purpose&lt;/th&gt;
&lt;th&gt;Example&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Noul&lt;/td&gt;
&lt;td&gt;Evaluate a yes/no hypothesis&lt;/td&gt;
&lt;td&gt;Does this log indicate a possible security issue?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Choice&lt;/td&gt;
&lt;td&gt;Choose a defined category&lt;/td&gt;
&lt;td&gt;Database, network, memory or authentication?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Score&lt;/td&gt;
&lt;td&gt;Evaluate an ordered rubric&lt;/td&gt;
&lt;td&gt;Low, medium or high operational risk&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The SDK also provides experimental Box functionality for some visual or spatial tasks.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Install the Python SDK
&lt;/h2&gt;

&lt;p&gt;The official Python SDK is distributed as &lt;code&gt;typesafe-sdk&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python -m pip install typesafe-sdk
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Configure your API key using your environment's secret-management mechanism.&lt;/p&gt;

&lt;p&gt;For local testing:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;TYPESAFE_API_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"your-api-key"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Never commit that key into a Git repository.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Design an Incident Classification Request
&lt;/h2&gt;

&lt;p&gt;Imagine an application returns this sanitized error:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;payment-service:
database connection pool exhausted
waiting connections: 180
HTTP 500 errors increasing
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You could provide this text as the state and ask structured questions.&lt;/p&gt;

&lt;p&gt;Conceptually:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"state"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"payment-service: database connection pool exhausted"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"questions"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"failure_domain"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"choice"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"options"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="s2"&gt;"DATABASE"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"NETWORK"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"MEMORY"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"AUTHENTICATION"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"UNKNOWN"&lt;/span&gt;
      &lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"requires_review"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"noul"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"instructions"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Evidence indicates a potentially severe production incident."&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is an illustrative question structure, not a complete executable SDK request. Check the current TypeSafe API documentation for the exact client method and response fields.&lt;/p&gt;

&lt;p&gt;The important idea is that the question defines what the application needs to decide.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Apply the Result Safely
&lt;/h2&gt;

&lt;p&gt;Suppose the model classifies an incident as &lt;code&gt;DATABASE&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;That can help route a ticket or suggest which runbook to open.&lt;/p&gt;

&lt;p&gt;But it shouldn't automatically restart databases or modify infrastructure.&lt;/p&gt;

&lt;p&gt;Your workflow should validate the classification against real metrics and logs.&lt;/p&gt;

&lt;p&gt;For higher-risk actions, use explicit authorization and human review.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Use Jev for CI/CD Decisions
&lt;/h2&gt;

&lt;p&gt;Another useful pattern is evaluating infrastructure changes.&lt;/p&gt;

&lt;p&gt;A pipeline could analyze a Terraform plan and flag changes that may require additional review.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Terraform plan
      |
      v
Deterministic policy checks
      |
      v
Jev advisory risk classification
      |
      v
GitHub protected environment
      |
      v
Human approval where required
      |
      v
Approved deployment
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Do not let an AI confidence score bypass a failed deterministic policy check.&lt;/p&gt;

&lt;p&gt;For Terraform, inspect the actual plan and apply the approved saved plan through your normal deployment process.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. When Should You Use Jev?
&lt;/h2&gt;

&lt;p&gt;Good candidates include classification, risk triage, routing and rubric-based evaluation.&lt;/p&gt;

&lt;p&gt;A generative model remains more appropriate for writing documentation, explaining an incident in detail, or producing code.&lt;/p&gt;

&lt;p&gt;The two approaches can complement one another.&lt;/p&gt;




&lt;h2&gt;
  
  
  Read the Complete Jev Guide
&lt;/h2&gt;

&lt;p&gt;My full article covers the Jev architecture, Python SDK, Pydantic AI integration, command-line tools, Kubernetes event classification, and practical CI/CD examples.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://blog.naveedkumbhar.com/how-to-use-jev/" rel="noopener noreferrer"&gt;Read How to Use Jev: Full DevOps &amp;amp; Automation Tutorial&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Official resources:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.typesafeai.org/guides" rel="noopener noreferrer"&gt;TypeSafe AI Guides&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.typesafe.ai/" rel="noopener noreferrer"&gt;TypeSafe AI Documentation&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;What part of your infrastructure automation could benefit from typed AI decisions?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Written by Naveed Ahmed — DevOps &amp;amp; Platform Engineering&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>devops</category>
      <category>python</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Caddy vs NGINX vs Traefik: Reverse Proxy Guide 2026</title>
      <dc:creator>Naveed Ahmed</dc:creator>
      <pubDate>Mon, 23 Nov 2026 08:46:45 +0000</pubDate>
      <link>https://dev.to/naveedkumbhar/caddy-vs-nginx-vs-traefik-reverse-proxy-guide-2026-47hd</link>
      <guid>https://dev.to/naveedkumbhar/caddy-vs-nginx-vs-traefik-reverse-proxy-guide-2026-47hd</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://blog.naveedkumbhar.com/caddy-vs-nginx-vs-traefik/" rel="noopener noreferrer"&gt;Naveed Ahmed's Engineering Blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Choosing a reverse proxy is no longer just a question of raw HTTP performance.&lt;/p&gt;

&lt;p&gt;Your team also needs to think about certificate management, configuration changes, container discovery, Kubernetes integration, and the cost of operating the gateway over time.&lt;/p&gt;

&lt;p&gt;Caddy, NGINX, and Traefik approach these problems differently.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. The Quick Comparison
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Category&lt;/th&gt;
&lt;th&gt;Caddy&lt;/th&gt;
&lt;th&gt;NGINX&lt;/th&gt;
&lt;th&gt;Traefik&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Configuration&lt;/td&gt;
&lt;td&gt;Caddyfile / JSON&lt;/td&gt;
&lt;td&gt;nginx.conf&lt;/td&gt;
&lt;td&gt;YAML / labels / providers&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Automatic HTTPS&lt;/td&gt;
&lt;td&gt;Built in&lt;/td&gt;
&lt;td&gt;External tooling typically needed&lt;/td&gt;
&lt;td&gt;Built-in ACME&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Docker discovery&lt;/td&gt;
&lt;td&gt;Integrations available&lt;/td&gt;
&lt;td&gt;Integrations available&lt;/td&gt;
&lt;td&gt;Native Docker provider&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Kubernetes&lt;/td&gt;
&lt;td&gt;Controller integrations&lt;/td&gt;
&lt;td&gt;Depends on controller product&lt;/td&gt;
&lt;td&gt;IngressRoute, Ingress, Gateway API&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Main strength&lt;/td&gt;
&lt;td&gt;Simplicity&lt;/td&gt;
&lt;td&gt;Flexibility&lt;/td&gt;
&lt;td&gt;Dynamic routing&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  2. Caddy: Automatic HTTPS With Less Configuration
&lt;/h2&gt;

&lt;p&gt;For a basic application, a Caddyfile can be very short:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;app.example.com {
    reverse_proxy 127.0.0.1:8080
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With valid DNS and reachable certificate-challenge endpoints, Caddy can manage publicly trusted HTTPS certificates automatically.&lt;/p&gt;

&lt;p&gt;That makes it appealing for small teams and straightforward service deployments.&lt;/p&gt;

&lt;p&gt;Its simplicity doesn't eliminate the need for logging, backend security, storage planning, or proper production testing.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. NGINX: Detailed Control
&lt;/h2&gt;

&lt;p&gt;NGINX uses a structured configuration format.&lt;/p&gt;

&lt;p&gt;A basic reverse proxy can look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight nginx"&gt;&lt;code&gt;&lt;span class="n"&gt;server&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;listen&lt;/span&gt; &lt;span class="mi"&gt;80&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;server_name&lt;/span&gt; &lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;example&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;com&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="n"&gt;location&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;proxy_pass&lt;/span&gt; &lt;span class="n"&gt;http&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="c1"&gt;//127.0.0.1:8080;&lt;/span&gt;
        &lt;span class="n"&gt;proxy_set_header&lt;/span&gt; &lt;span class="nc"&gt;Host&lt;/span&gt; $&lt;span class="n"&gt;host&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="n"&gt;proxy_set_header&lt;/span&gt; &lt;span class="no"&gt;X&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Forwarded&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;For&lt;/span&gt; $&lt;span class="n"&gt;proxy_add_x_forwarded_for&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This example uses HTTP only to demonstrate routing.&lt;/p&gt;

&lt;p&gt;A real public deployment should include an appropriate HTTPS setup.&lt;/p&gt;

&lt;p&gt;NGINX provides extensive capabilities for proxy configuration, caching, upstream management, and request handling.&lt;/p&gt;

&lt;p&gt;For established Linux environments, that flexibility can be valuable.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Traefik: Container Discovery
&lt;/h2&gt;

&lt;p&gt;Traefik has native integrations for discovering container services.&lt;/p&gt;

&lt;p&gt;In Docker Compose, labels can define the routing rules:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;services&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;app&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;image&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;example/app:1.0&lt;/span&gt;
    &lt;span class="na"&gt;labels&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s2"&gt;"traefik.enable=true"&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s2"&gt;"traefik.http.routers.app.rule=Host(`app.example.com`)"&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s2"&gt;"traefik.http.routers.app.entrypoints=websecure"&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s2"&gt;"traefik.http.services.app.loadbalancer.server.port=8080"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is only the application-side routing configuration.&lt;/p&gt;

&lt;p&gt;A working HTTPS deployment also needs a properly configured Traefik service, Docker provider, TLS handling, network attachment, and entry point.&lt;/p&gt;

&lt;p&gt;Because the Docker provider requires access to container metadata, secure how it connects to the Docker API.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Kubernetes Changes the Decision
&lt;/h2&gt;

&lt;p&gt;Traefik supports Kubernetes routing providers and custom resources, including IngressRoute.&lt;/p&gt;

&lt;p&gt;NGINX-based ingress remains a product category, but controller implementations must be distinguished.&lt;/p&gt;

&lt;p&gt;In particular, the community Kubernetes ingress-nginx project announced retirement in March 2026. It should not be confused with the independently maintained NGINX web server or F5 NGINX Ingress Controller.&lt;/p&gt;

&lt;p&gt;For new cluster deployments, also evaluate Kubernetes Gateway API.&lt;/p&gt;

&lt;p&gt;The most appropriate controller depends on support status, migration needs, traffic policies, and team experience.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. What About Performance?
&lt;/h2&gt;

&lt;p&gt;Your own workload matters more than a generic leaderboard.&lt;/p&gt;

&lt;p&gt;A useful benchmark should control:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Proxy versions and configuration&lt;/li&gt;
&lt;li&gt;TLS settings&lt;/li&gt;
&lt;li&gt;Keep-alive and connection reuse&lt;/li&gt;
&lt;li&gt;Backend latency&lt;/li&gt;
&lt;li&gt;Request size and concurrency&lt;/li&gt;
&lt;li&gt;CPU and memory limits&lt;/li&gt;
&lt;li&gt;Test generator capacity&lt;/li&gt;
&lt;li&gt;P95/P99 latency and error rates&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Don't treat a synthetic requests-per-second result as proof of superior application performance in every environment.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which One Would I Choose?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Caddy:&lt;/strong&gt; A small application stack where automatic HTTPS and simplicity matter most.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;NGINX:&lt;/strong&gt; Established Linux or API gateway environments that benefit from detailed proxy controls.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Traefik:&lt;/strong&gt; Docker or Kubernetes environments with frequent service changes and declarative routing.&lt;/p&gt;

&lt;p&gt;None is universally best.&lt;/p&gt;




&lt;h2&gt;
  
  
  Complete Architecture and Configuration Comparison
&lt;/h2&gt;

&lt;p&gt;My full article includes a detailed comparison of TLS automation, performance considerations, Caddyfile versus nginx.conf versus Traefik labels, and production deployment trade-offs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://blog.naveedkumbhar.com/caddy-vs-nginx-vs-traefik/" rel="noopener noreferrer"&gt;Read Caddy vs NGINX vs Traefik: Reverse Proxy Benchmark &amp;amp; K8s Architecture&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Which reverse proxy are you currently using, and what made you choose it?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Written by Naveed Ahmed — DevOps &amp;amp; Platform Engineering&lt;/em&gt;&lt;/p&gt;

</description>
      <category>devops</category>
      <category>nginx</category>
      <category>docker</category>
      <category>kubernetes</category>
    </item>
    <item>
      <title>NGINX2Root: CVE-2026-123007, HTTP/2 RCE &amp; Patching</title>
      <dc:creator>Naveed Ahmed</dc:creator>
      <pubDate>Thu, 19 Nov 2026 06:16:46 +0000</pubDate>
      <link>https://dev.to/naveedkumbhar/nginx2root-cve-2026-123007-http2-rce-patching-3kf6</link>
      <guid>https://dev.to/naveedkumbhar/nginx2root-cve-2026-123007-http2-rce-patching-3kf6</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://blog.naveedkumbhar.com/nginx2root/" rel="noopener noreferrer"&gt;Naveed Ahmed's Engineering Blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;NGINX is often the first application component that receives traffic from the public internet.&lt;/p&gt;

&lt;p&gt;It's used for reverse proxies, API gateways, containerized web applications, and Kubernetes ingress.&lt;/p&gt;

&lt;p&gt;That makes NGINX security updates especially important for infrastructure teams.&lt;/p&gt;

&lt;p&gt;On November 18, 2026, several NGINX vulnerabilities were disclosed under the name NGINX2Root.&lt;/p&gt;

&lt;p&gt;The principal issue is CVE-2026-123007, a memory-corruption vulnerability in HTTP/2 flow control.&lt;/p&gt;

&lt;p&gt;Successful exploitation may allow unauthenticated code execution within the NGINX worker-process context.&lt;/p&gt;

&lt;p&gt;Here's a practical defensive overview.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Understand the Five Vulnerabilities
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;CVE&lt;/th&gt;
&lt;th&gt;Component&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;CVE-2026-123007&lt;/td&gt;
&lt;td&gt;HTTP/2 flow-control memory corruption&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CVE-2026-123633&lt;/td&gt;
&lt;td&gt;HTTP/2 connection-draining use-after-free&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CVE-2026-123634&lt;/td&gt;
&lt;td&gt;Dynamic resolver use-after-free&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CVE-2026-121810&lt;/td&gt;
&lt;td&gt;HTTP/3 use-after-free&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CVE-2026-113425&lt;/td&gt;
&lt;td&gt;Mail-proxy use-after-free&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Each vulnerability has different feature prerequisites.&lt;/p&gt;

&lt;p&gt;The full NGINX2Root exploit demonstrations involve more than just compromising an HTTP/2 worker; escalation to host root requires an additional vulnerability and suitable conditions.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Check Your NGINX Version
&lt;/h2&gt;

&lt;p&gt;On a standalone host:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;nginx -v
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Review compiled features:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;nginx -V
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Inspect the active configuration:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo nginx -T
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The patched upstream Open Source releases are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Stable: 1.30.7&lt;/li&gt;
&lt;li&gt;Mainline: 1.31.9&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For distribution packages, check vendor advisories rather than relying on the displayed upstream version alone. Maintainers may backport security fixes without changing the upstream version number.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Review HTTP/2 Exposure
&lt;/h2&gt;

&lt;p&gt;Search the effective configuration for HTTP/2-enabled listeners.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo nginx -T 2&lt;span class="o"&gt;&amp;gt;&amp;amp;&lt;/span&gt;1 &lt;span class="o"&gt;|&lt;/span&gt; grep -E &lt;span class="s1"&gt;'http2[[:space:]]+on|listen .*http2'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The result needs manual interpretation because generated includes and deployment-specific configuration may change what is active.&lt;/p&gt;

&lt;p&gt;For vulnerable HTTP/2 listeners, temporarily disabling HTTP/2 can mitigate CVE-2026-123007 and CVE-2026-123633.&lt;/p&gt;

&lt;p&gt;For supported configurations, an example is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight nginx"&gt;&lt;code&gt;&lt;span class="n"&gt;server&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;listen&lt;/span&gt; &lt;span class="mi"&gt;443&lt;/span&gt; &lt;span class="n"&gt;ssl&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;http2&lt;/span&gt; &lt;span class="n"&gt;off&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="n"&gt;server_name&lt;/span&gt; &lt;span class="n"&gt;example&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;com&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Validate and apply the configuration using your normal change-management process.&lt;/p&gt;

&lt;p&gt;Disabling HTTP/2 is a temporary mitigation, not a substitute for patching all affected features.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Audit Kubernetes Ingress Controllers
&lt;/h2&gt;

&lt;p&gt;First, identify which ingress implementations are actually installed.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;kubectl get deployments,daemonsets -A
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For the community ingress-nginx controller, inspect its Pods and images where the standard labels are present:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;kubectl get pods -A \
  -l app.kubernetes.io/name=ingress-nginx \
  -o wide
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Review the exact image reference and image digest.&lt;/p&gt;

&lt;p&gt;Then determine which NGINX binary is bundled inside that image and check the controller vendor's security advisory.&lt;/p&gt;

&lt;p&gt;Do not assume a specific ingress controller version is safe merely because its version looks recent.&lt;/p&gt;

&lt;p&gt;Community ingress-nginx and F5 NGINX Ingress Controller are different products with separate release schedules.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Apply and Verify the Security Fix
&lt;/h2&gt;

&lt;p&gt;On a Linux host, follow the distribution vendor's update process.&lt;/p&gt;

&lt;p&gt;After updating, ensure affected running processes have been replaced as required by the vendor guidance.&lt;/p&gt;

&lt;p&gt;A graceful configuration reload does not necessarily replace the executable image used by the existing master process.&lt;/p&gt;

&lt;p&gt;A controlled restart may be needed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo nginx -t
sudo systemctl restart nginx
sudo systemctl status nginx
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Restarting can affect active connections. Use a load-balanced rollout or an approved maintenance procedure where availability matters.&lt;/p&gt;

&lt;p&gt;For Kubernetes, update the controller image to a vendor-confirmed fixed build and roll it out using an availability-aware deployment process.&lt;/p&gt;

&lt;p&gt;Verify traffic and running images after deployment.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Review Compromise Indicators
&lt;/h2&gt;

&lt;p&gt;Check for unexpected worker failures, suspicious child processes, unusual outbound connections, and security alerts.&lt;/p&gt;

&lt;p&gt;A worker crash alone is not proof of successful code execution.&lt;/p&gt;

&lt;p&gt;If compromise is suspected, preserve evidence and follow your organization's incident response procedure.&lt;/p&gt;




&lt;h2&gt;
  
  
  Read the Complete NGINX2Root Guide
&lt;/h2&gt;

&lt;p&gt;My full article explores the HTTP/2 vulnerability, companion CVEs, patching considerations, and a Kubernetes ingress triage runbook.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://blog.naveedkumbhar.com/nginx2root/" rel="noopener noreferrer"&gt;Read NGINX2Root: HTTP/2 RCE &amp;amp; Resolver Vulnerabilities&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Official references:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://nginx.org/en/security_advisories.html" rel="noopener noreferrer"&gt;NGINX Security Advisories&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.cert.europa.eu/publications/security-advisories/2026-022/" rel="noopener noreferrer"&gt;CERT-EU Security Advisory 2026-022&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;strong&gt;How does your team verify that all externally exposed NGINX deployments are patched?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Written by Naveed Ahmed — DevOps &amp;amp; Platform Engineering&lt;/em&gt;&lt;/p&gt;

</description>
      <category>nginx</category>
      <category>security</category>
      <category>devops</category>
      <category>kubernetes</category>
    </item>
    <item>
      <title>NVIDIA CEO Resigns: Lessons for AI Infrastructure Engineers</title>
      <dc:creator>Naveed Ahmed</dc:creator>
      <pubDate>Mon, 16 Nov 2026 15:57:09 +0000</pubDate>
      <link>https://dev.to/naveedkumbhar/nvidia-ceo-resigns-lessons-for-ai-infrastructure-engineers-21gm</link>
      <guid>https://dev.to/naveedkumbhar/nvidia-ceo-resigns-lessons-for-ai-infrastructure-engineers-21gm</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://blog.naveedkumbhar.com/nvidia-ceo-resign/" rel="noopener noreferrer"&gt;Naveed Ahmed's Engineering Blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Jensen Huang's departure from NVIDIA is more than a business leadership story.&lt;/p&gt;

&lt;p&gt;For engineers operating GPU clusters, AI training infrastructure, and cloud platforms, it also raises an interesting question:&lt;/p&gt;

&lt;p&gt;How should we manage dependencies on a technology ecosystem led for decades by one founder?&lt;/p&gt;

&lt;h2&gt;
  
  
  What Happened?
&lt;/h2&gt;

&lt;p&gt;NVIDIA announced on November 12, 2026, that Jensen Huang had resigned as CEO, President, and board member.&lt;/p&gt;

&lt;p&gt;The company appointed CFO Colette Kress as interim CEO and Harvey C. Jones as board chair.&lt;/p&gt;

&lt;p&gt;A search for a permanent CEO is underway.&lt;/p&gt;

&lt;p&gt;There are also reports of a campaign encouraging Huang's return, but a comeback hasn't been confirmed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why DevOps and Platform Engineers Should Care
&lt;/h2&gt;

&lt;p&gt;NVIDIA's ecosystem includes more than GPUs.&lt;/p&gt;

&lt;p&gt;AI infrastructure teams often rely on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;CUDA and GPU runtime libraries&lt;/li&gt;
&lt;li&gt;GPU drivers and container runtimes&lt;/li&gt;
&lt;li&gt;High-speed accelerator networking&lt;/li&gt;
&lt;li&gt;Cloud GPU instance availability&lt;/li&gt;
&lt;li&gt;Model-serving and inference toolchains&lt;/li&gt;
&lt;li&gt;Long-term hardware procurement plans&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Leadership changes can create uncertainty, but uncertainty isn't the same as confirmed service disruption.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three Practical Engineering Lessons
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Identify vendor concentration risks
&lt;/h3&gt;

&lt;p&gt;Know which applications depend on a specific accelerator family, driver version, or proprietary library.&lt;/p&gt;

&lt;p&gt;Maintain an inventory of critical dependencies.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Validate portability assumptions
&lt;/h3&gt;

&lt;p&gt;A workload that runs on NVIDIA GPUs may require substantial engineering to move to alternative hardware.&lt;/p&gt;

&lt;p&gt;Benchmark alternatives before an emergency creates pressure to migrate.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Keep infrastructure roadmaps evidence-based
&lt;/h3&gt;

&lt;p&gt;Track official product announcements, cloud provider commitments, and actual delivery changes.&lt;/p&gt;

&lt;p&gt;Avoid making costly platform decisions based only on executive speculation or stock-market movements.&lt;/p&gt;

&lt;h2&gt;
  
  
  A Useful Vendor-Resilience Checklist
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[ ] Inventory critical GPU workloads
[ ] Document driver and CUDA dependencies
[ ] Review reserved cloud GPU capacity
[ ] Check vendor support commitments
[ ] Benchmark realistic alternatives
[ ] Test workload recovery procedures
[ ] Track official roadmap updates
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is a general risk-management checklist, not evidence that NVIDIA has suspended any of these services.&lt;/p&gt;

&lt;h2&gt;
  
  
  Read the Complete Analysis
&lt;/h2&gt;

&lt;p&gt;My original article also explores the leadership crisis, interim CEO, market reaction, Huang's career, reported comeback efforts, and the implications for AI infrastructure.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://blog.naveedkumbhar.com/nvidia-ceo-resign/" rel="noopener noreferrer"&gt;Read NVIDIA CEO Resignation: Full Analysis&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;How does your team assess dependency risk when a major technology vendor undergoes a leadership change?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Written by Naveed Ahmed — DevOps &amp;amp; Platform Engineering&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>devops</category>
      <category>cloud</category>
      <category>leadership</category>
    </item>
    <item>
      <title>Microsoft Outage 2026: SRE Lessons from a Network Change</title>
      <dc:creator>Naveed Ahmed</dc:creator>
      <pubDate>Sat, 14 Nov 2026 16:06:10 +0000</pubDate>
      <link>https://dev.to/naveedkumbhar/microsoft-outage-2026-sre-lessons-from-a-network-change-5ail</link>
      <guid>https://dev.to/naveedkumbhar/microsoft-outage-2026-sre-lessons-from-a-network-change-5ail</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://blog.naveedkumbhar.com/microsoft-outage/" rel="noopener noreferrer"&gt;Naveed Ahmed's Engineering Blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;On November 12–13, 2026, a widespread Microsoft 365 outage affected Outlook, Exchange Online, parts of Teams, Copilot, and other services.&lt;/p&gt;

&lt;p&gt;Microsoft linked the disruption to problems following a network-capacity upgrade, with server availability and infrastructure load contributing to the incident.&lt;/p&gt;

&lt;p&gt;For DevOps and SRE engineers, it's a useful example of why distributed systems need more than application-level redundancy.&lt;/p&gt;

&lt;p&gt;The exact internal routing sequence described in some analyses has not been publicly established, so let's focus on the engineering lessons we can apply.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Shared Dependencies Can Defeat Redundancy
&lt;/h2&gt;

&lt;p&gt;Imagine a service deployed across three availability zones.&lt;/p&gt;

&lt;p&gt;It has multiple replicas and healthy application containers.&lt;/p&gt;

&lt;p&gt;But every replica depends on the same external authentication service.&lt;/p&gt;

&lt;p&gt;If that dependency becomes unavailable, your application can still fail.&lt;/p&gt;

&lt;p&gt;The lesson is to identify shared-fate dependencies: networking, identity, DNS, control planes, and critical external APIs.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Canary Infrastructure Changes
&lt;/h2&gt;

&lt;p&gt;Application code isn't the only thing that needs progressive deployment.&lt;/p&gt;

&lt;p&gt;Network routing policies, identity configurations, and infrastructure changes should also be staged.&lt;/p&gt;

&lt;p&gt;A safe approach includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Pre-deployment validation&lt;/li&gt;
&lt;li&gt;Small canary groups&lt;/li&gt;
&lt;li&gt;Synthetic monitoring&lt;/li&gt;
&lt;li&gt;Clear rollback conditions&lt;/li&gt;
&lt;li&gt;Observation periods before wider rollout&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The rollback process must be tested rather than assumed to work.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Synthetic Monitoring Matters
&lt;/h2&gt;

&lt;p&gt;Component health checks aren't enough.&lt;/p&gt;

&lt;p&gt;A server may be running while customers cannot complete a login or send a message.&lt;/p&gt;

&lt;p&gt;Useful synthetic probes might test:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DNS resolution
    ↓
TLS connection
    ↓
Authentication
    ↓
Application request
    ↓
Expected response
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Track both component metrics and user-facing functionality.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Prevent Retry Storms During Recovery
&lt;/h2&gt;

&lt;p&gt;When an upstream service recovers, many clients may reconnect simultaneously.&lt;/p&gt;

&lt;p&gt;If retries happen on fixed intervals, they can produce synchronized traffic spikes.&lt;/p&gt;

&lt;p&gt;For safe, idempotent requests, bounded exponential backoff with jitter is often useful:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;random&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;retry_delay&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;attempt&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;base&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mf"&gt;0.5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cap&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;ceiling&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;min&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cap&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;base&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="o"&gt;**&lt;/span&gt; &lt;span class="n"&gt;attempt&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;random&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;uniform&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ceiling&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A complete implementation also needs timeouts, a maximum attempt count, and careful handling of non-idempotent operations.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Build an Incident Response Runbook
&lt;/h2&gt;

&lt;p&gt;A practical runbook should explain:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;How to detect user impact.&lt;/li&gt;
&lt;li&gt;How to identify the failing dependency.&lt;/li&gt;
&lt;li&gt;Who owns the incident.&lt;/li&gt;
&lt;li&gt;Which mitigations are safe.&lt;/li&gt;
&lt;li&gt;How customers receive updates.&lt;/li&gt;
&lt;li&gt;How recovery is verified.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;When the cloud provider itself is affected, independent monitoring and out-of-band communication become particularly important.&lt;/p&gt;




&lt;h2&gt;
  
  
  Read the Full Microsoft Outage Analysis
&lt;/h2&gt;

&lt;p&gt;My original article covers the reported incident, possible network failure propagation, the distinction between Microsoft 365 and Azure service layers, telemetry safeguards, and an SRE resilience runbook.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://blog.naveedkumbhar.com/microsoft-outage/" rel="noopener noreferrer"&gt;Read Microsoft Outage: Root Cause and SRE Runbook&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The low-level BGP sequence and precise internal metrics discussed in the article should be treated as unverified architectural analysis pending a detailed public postmortem.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;What's the most important shared dependency in your production architecture?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Written by Naveed Ahmed — DevOps &amp;amp; Platform Engineering&lt;/em&gt;&lt;/p&gt;

</description>
      <category>devops</category>
      <category>sre</category>
      <category>azure</category>
      <category>architecture</category>
    </item>
    <item>
      <title>50 Docker Interview Questions: DevOps &amp; SRE Guide 2026</title>
      <dc:creator>Naveed Ahmed</dc:creator>
      <pubDate>Sat, 14 Nov 2026 13:36:41 +0000</pubDate>
      <link>https://dev.to/naveedkumbhar/50-docker-interview-questions-devops-sre-guide-2026-388n</link>
      <guid>https://dev.to/naveedkumbhar/50-docker-interview-questions-devops-sre-guide-2026-388n</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://blog.naveedkumbhar.com/docker-interview-questions-2026/" rel="noopener noreferrer"&gt;Naveed Ahmed's Engineering Blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Docker interviews are no longer only about explaining images and containers.&lt;/p&gt;

&lt;p&gt;For experienced DevOps and SRE roles, interviewers may also ask how you would investigate failures, reduce CI build times, or secure container workloads.&lt;/p&gt;

&lt;p&gt;I recently put together 50 Docker interview questions organized into six technical areas.&lt;/p&gt;

&lt;p&gt;Here are a few practical questions worth mastering.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Docker vs Virtual Machines: What's the Real Difference?
&lt;/h2&gt;

&lt;p&gt;Containers use operating-system features such as Linux namespaces and cgroups for isolation and resource management.&lt;/p&gt;

&lt;p&gt;Unlike a typical virtual machine, a Linux container shares the host's kernel.&lt;/p&gt;

&lt;p&gt;That makes containers useful for packaging and running applications without requiring a full guest OS for each workload.&lt;/p&gt;

&lt;p&gt;But containers and VMs offer different isolation boundaries. Sharing a kernel has security implications.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. What Happens Behind &lt;code&gt;docker run&lt;/code&gt;?
&lt;/h2&gt;

&lt;p&gt;A useful interview answer should explain the architecture.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Docker CLI
   ↓
Docker Daemon
   ↓
containerd
   ↓
runc
   ↓
Linux Container Process
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The CLI requests an operation, the daemon manages Docker resources, containerd supports container lifecycle operations, and the OCI runtime creates the container process.&lt;/p&gt;

&lt;p&gt;Knowing the components helps when troubleshooting runtime or daemon failures.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. How Would You Fix Slow Docker Builds?
&lt;/h2&gt;

&lt;p&gt;Imagine a Docker image takes 25 minutes to build in CI even when only one application file changes.&lt;/p&gt;

&lt;p&gt;The first place I'd look is the Dockerfile.&lt;/p&gt;

&lt;p&gt;A common problem is copying all application files before installing dependencies.&lt;/p&gt;

&lt;p&gt;For a Node.js application, a better starting point may be:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight docker"&gt;&lt;code&gt;&lt;span class="k"&gt;FROM&lt;/span&gt; node:22-slim

&lt;span class="k"&gt;WORKDIR&lt;/span&gt; /app

&lt;span class="k"&gt;COPY&lt;/span&gt; package*.json ./
&lt;span class="k"&gt;RUN&lt;/span&gt; npm ci

&lt;span class="k"&gt;COPY&lt;/span&gt; . .

&lt;span class="k"&gt;CMD&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"node"&lt;/span&gt;, &lt;span class="s2"&gt;"server.js"&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This illustrates layer ordering, not a complete production-hardened image.&lt;/p&gt;

&lt;p&gt;When the dependency files remain unchanged, Docker can often reuse the dependency-installation layer.&lt;/p&gt;

&lt;p&gt;For more demanding workloads, consider BuildKit cache mounts and external cache exports. &lt;cite ref="turn337884search8"&gt;&lt;/cite&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  4. What Does Docker Exit Code 137 Mean?
&lt;/h2&gt;

&lt;p&gt;Exit code 137 means a process was terminated by signal 9, &lt;code&gt;SIGKILL&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;It may indicate an out-of-memory kill, but it can also occur when a process is forcibly killed for another reason.&lt;/p&gt;

&lt;p&gt;Start with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker inspect &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;container&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; \
  --format &lt;span class="s1"&gt;'{{.State.ExitCode}} {{.State.OOMKilled}}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then review logs and host evidence:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker logs --tail 100 &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;container&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
sudo journalctl -k --no-pager &lt;span class="o"&gt;|&lt;/span&gt; grep -i oom
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The important part is confirming the cause before applying a fix.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Why Can't Two Containers Resolve Each Other?
&lt;/h2&gt;

&lt;p&gt;For containers on user-defined bridge networks, Docker provides name-based service discovery.&lt;/p&gt;

&lt;p&gt;Check the connected networks:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker inspect &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;container&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; \
  --format &lt;span class="s1"&gt;'{{json .NetworkSettings.Networks}}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Inspect the network:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker network inspect &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;network-name&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Verify that both containers belong to the intended network and test DNS from an appropriate diagnostic container.&lt;/p&gt;

&lt;p&gt;Don't assume that published host ports are required for container-to-container communication.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. How Do You Secure Container Builds?
&lt;/h2&gt;

&lt;p&gt;A useful production checklist includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Multi-stage builds to keep build tools out of runtime images&lt;/li&gt;
&lt;li&gt;A non-root runtime user where feasible&lt;/li&gt;
&lt;li&gt;Least-privilege Linux capabilities&lt;/li&gt;
&lt;li&gt;BuildKit secret mounts instead of embedding credentials&lt;/li&gt;
&lt;li&gt;Base-image updates and vulnerability scanning&lt;/li&gt;
&lt;li&gt;Restricted access to the Docker daemon socket&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Mounting &lt;code&gt;/var/run/docker.sock&lt;/code&gt; into an untrusted container can expose powerful host-level Docker controls.&lt;/p&gt;

&lt;p&gt;Rootless mode reduces privilege exposure, but isn't a complete security guarantee.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. How Does Docker Relate to Kubernetes?
&lt;/h2&gt;

&lt;p&gt;Docker images commonly use OCI-compatible image formats.&lt;/p&gt;

&lt;p&gt;Kubernetes no longer requires Dockershim to interact with Docker Engine; modern clusters can use CRI-compatible runtimes such as containerd directly.&lt;/p&gt;

&lt;p&gt;That doesn't mean Docker-built images stopped working with Kubernetes.&lt;/p&gt;

&lt;p&gt;It means the orchestration runtime integration changed.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I'd Answer Scenario-Based Questions
&lt;/h2&gt;

&lt;p&gt;I prefer this format:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Symptom → Evidence → Root cause → Safe fix → Prevention&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If the interviewer asks about a failed container, don't jump immediately to restarting it.&lt;/p&gt;

&lt;p&gt;Explain which evidence you'd collect and what that evidence would tell you.&lt;/p&gt;




&lt;h2&gt;
  
  
  Read All 50 Docker Interview Questions
&lt;/h2&gt;

&lt;p&gt;My complete guide covers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Docker Engine architecture and Linux isolation&lt;/li&gt;
&lt;li&gt;Dockerfile optimization and BuildKit&lt;/li&gt;
&lt;li&gt;Storage, volumes and networking&lt;/li&gt;
&lt;li&gt;Production incidents and exit codes&lt;/li&gt;
&lt;li&gt;Container security and build environments&lt;/li&gt;
&lt;li&gt;Kubernetes and container runtime integration&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://blog.naveedkumbhar.com/docker-interview-questions-2026/" rel="noopener noreferrer"&gt;Read 50 Docker Interview Questions and Answers for 2026&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You can also practice more hands-on scenarios on the &lt;a href="https://interview.naveedkumbhar.com/" rel="noopener noreferrer"&gt;DevOps Interview Hub&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;What's the most difficult Docker issue you've troubleshot in production?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Written by Naveed Ahmed — DevOps &amp;amp; Platform Engineering&lt;/em&gt;&lt;/p&gt;

</description>
      <category>docker</category>
      <category>devops</category>
      <category>tutorial</category>
      <category>career</category>
    </item>
    <item>
      <title>How to Become a Better Engineering Leader: 15 Practical Skills</title>
      <dc:creator>Naveed Ahmed</dc:creator>
      <pubDate>Fri, 13 Nov 2026 03:44:36 +0000</pubDate>
      <link>https://dev.to/naveedkumbhar/how-to-become-a-better-engineering-leader-15-practical-skills-5hm6</link>
      <guid>https://dev.to/naveedkumbhar/how-to-become-a-better-engineering-leader-15-practical-skills-5hm6</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://blog.naveedkumbhar.com/how-to-become-a-better-engineering-leader/" rel="noopener noreferrer"&gt;Naveed Ahmed's Engineering Blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Becoming a senior engineer takes years of technical problem-solving.&lt;/p&gt;

&lt;p&gt;You learn to debug difficult failures, design reliable architectures, improve CI/CD pipelines, and make production systems more dependable.&lt;/p&gt;

&lt;p&gt;Then you become a tech lead or engineering manager.&lt;/p&gt;

&lt;p&gt;Suddenly, the work changes.&lt;/p&gt;

&lt;p&gt;You can't measure your impact only through code, tickets, or technical decisions anymore.&lt;/p&gt;

&lt;p&gt;Your effectiveness increasingly depends on how well your team can make progress without your constant intervention.&lt;/p&gt;

&lt;p&gt;Here are the leadership practices I believe matter most.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Stop Being the Hero of Every Incident
&lt;/h2&gt;

&lt;p&gt;There's a familiar pattern in engineering teams.&lt;/p&gt;

&lt;p&gt;Something breaks in production.&lt;/p&gt;

&lt;p&gt;Everyone waits for the most experienced engineer to join the call.&lt;/p&gt;

&lt;p&gt;That engineer diagnoses the issue, decides on the fix, and saves the day.&lt;/p&gt;

&lt;p&gt;It feels productive, but it creates a dependency.&lt;/p&gt;

&lt;p&gt;A better leader builds runbooks, trains engineers, distributes operational knowledge, and ensures incidents can be handled without one person always stepping in.&lt;/p&gt;

&lt;p&gt;Your goal isn't to become indispensable.&lt;/p&gt;

&lt;p&gt;It's to make the team more capable.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Delegate Ownership Instead of Tasks
&lt;/h2&gt;

&lt;p&gt;Consider a CI/CD pipeline that takes 45 minutes.&lt;/p&gt;

&lt;p&gt;A micromanaging leader might tell an engineer exactly which cache settings to change.&lt;/p&gt;

&lt;p&gt;A better approach is to define the outcome:&lt;/p&gt;

&lt;p&gt;"Reduce build time while preserving test coverage, deployment security, and cloud cost limits."&lt;/p&gt;

&lt;p&gt;Then give the engineer room to evaluate solutions.&lt;/p&gt;

&lt;p&gt;Clear expectations and decision boundaries matter more than controlling every implementation detail.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Build Trust and Psychological Safety
&lt;/h2&gt;

&lt;p&gt;Engineers need to feel comfortable raising concerns, admitting uncertainty, and reporting mistakes.&lt;/p&gt;

&lt;p&gt;This matters especially during production incidents.&lt;/p&gt;

&lt;p&gt;A blameless postmortem doesn't mean avoiding accountability.&lt;/p&gt;

&lt;p&gt;It means understanding what happened, why the available safeguards didn't prevent it, and how the system can become more reliable.&lt;/p&gt;

&lt;p&gt;Teams that hide mistakes struggle to learn from them.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Improve Your Communication
&lt;/h2&gt;

&lt;p&gt;A good engineering leader translates between technical details and business outcomes.&lt;/p&gt;

&lt;p&gt;Instead of saying:&lt;/p&gt;

&lt;p&gt;"We need to replace this outdated caching service."&lt;/p&gt;

&lt;p&gt;Explain:&lt;/p&gt;

&lt;p&gt;"The current caching architecture increases incident risk, slows feature delivery, and creates recurring operational costs."&lt;/p&gt;

&lt;p&gt;Provide context, alternatives, trade-offs, and a clear recommendation.&lt;/p&gt;

&lt;p&gt;Architecture Decision Records (ADRs) are useful for preserving those decisions.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Make One-on-Ones Useful
&lt;/h2&gt;

&lt;p&gt;A good one-on-one isn't another project status meeting.&lt;/p&gt;

&lt;p&gt;Use it to understand what is slowing an engineer down, what skills they want to develop, and what feedback could help.&lt;/p&gt;

&lt;p&gt;Ask questions such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What's taking more effort than it should?&lt;/li&gt;
&lt;li&gt;Which decisions are currently blocking you?&lt;/li&gt;
&lt;li&gt;What kind of project would help you grow?&lt;/li&gt;
&lt;li&gt;Is there anything about our team process that we should change?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Listen before solving.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Give Feedback Early and Specifically
&lt;/h2&gt;

&lt;p&gt;Avoid saving all your feedback for annual reviews.&lt;/p&gt;

&lt;p&gt;Praise should explain which behavior made a difference.&lt;/p&gt;

&lt;p&gt;Constructive feedback should describe an observed behavior, its impact, and a practical improvement.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;p&gt;"Your incident summary was technically detailed, but the customer impact wasn't clear. Let's lead with user impact next time."&lt;/p&gt;

&lt;p&gt;Specific feedback is easier to act on than vague criticism.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Manage Technical Debt Deliberately
&lt;/h2&gt;

&lt;p&gt;Technical debt isn't automatically bad.&lt;/p&gt;

&lt;p&gt;Sometimes teams intentionally accept a temporary shortcut to meet an important deadline.&lt;/p&gt;

&lt;p&gt;The problem is allowing those decisions to remain invisible.&lt;/p&gt;

&lt;p&gt;Document the trade-off, understand the future cost, and make time for necessary improvements.&lt;/p&gt;

&lt;p&gt;Avoid assuming that a complete rewrite is always the best answer.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. Measure Team Outcomes, Not Individual Activity
&lt;/h2&gt;

&lt;p&gt;Counting commits, pull requests, or completed tickets is not a reliable way to measure engineering effectiveness.&lt;/p&gt;

&lt;p&gt;Use delivery and reliability indicators, such as DORA metrics, alongside developer experience and team feedback.&lt;/p&gt;

&lt;p&gt;Metrics should help identify problems in the system—not become a way to rank individual engineers.&lt;/p&gt;

&lt;h2&gt;
  
  
  9. Develop Other Engineers
&lt;/h2&gt;

&lt;p&gt;Mentoring isn't simply answering questions.&lt;/p&gt;

&lt;p&gt;It's helping someone build the confidence and judgment to answer similar questions independently next time.&lt;/p&gt;

&lt;p&gt;Delegate meaningful technical decisions.&lt;/p&gt;

&lt;p&gt;Give engineers opportunities to present their work.&lt;/p&gt;

&lt;p&gt;Recognize contributions and create room for growth.&lt;/p&gt;

&lt;h2&gt;
  
  
  10. Lead Responsible AI Adoption
&lt;/h2&gt;

&lt;p&gt;AI coding tools can accelerate development, but they introduce questions about security, code quality, testing, and engineering judgment.&lt;/p&gt;

&lt;p&gt;Leadership means establishing standards for AI-generated changes, review practices, and acceptable usage.&lt;/p&gt;

&lt;p&gt;The goal should be higher-quality engineering outcomes, not simply more generated code.&lt;/p&gt;

&lt;h2&gt;
  
  
  A Practical 30-60-90 Day Plan
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;First 30 days — Listen and understand&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Meet engineers, map team responsibilities, identify friction, and learn where decisions become blocked.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Days 31–60 — Clarify and improve&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Define ownership boundaries, improve feedback loops, remove important delivery obstacles, and establish team working agreements.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Days 61–90 — Scale team effectiveness&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Review operational metrics, improve incident learning, delegate larger outcomes, and build repeatable leadership habits.&lt;/p&gt;




&lt;h2&gt;
  
  
  Read the Complete Engineering Leadership Guide
&lt;/h2&gt;

&lt;p&gt;My original article explains 15 practical leadership skills in detail, including technical decision-making, difficult conversations, mentoring, DevOps incident response, technical debt, and responsible AI adoption.&lt;/p&gt;

&lt;p&gt;It also includes a leadership self-review checklist, recommended books, and a detailed 30-60-90-day plan.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://blog.naveedkumbhar.com/how-to-become-a-better-engineering-leader/" rel="noopener noreferrer"&gt;Read How to Become a Better Engineering Leader: 15 Practical Skills&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;Strong engineering leadership isn't about being the smartest person in every meeting.&lt;/p&gt;

&lt;p&gt;It's about helping people make better decisions, improve systems, and grow into greater responsibility.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What's one leadership habit you wish you had learned earlier?&lt;/strong&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Written by Naveed Ahmed — DevOps &amp;amp; Platform Engineering&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://blog.naveedkumbhar.com" rel="noopener noreferrer"&gt;Engineering Blog&lt;/a&gt; | &lt;a href="https://github.com/naveedkumbhar" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;&lt;/p&gt;

</description>
      <category>career</category>
      <category>leadership</category>
      <category>devops</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Apache Kafka Tutorial: KRaft, Docker &amp; Consumer Groups</title>
      <dc:creator>Naveed Ahmed</dc:creator>
      <pubDate>Wed, 04 Nov 2026 13:49:40 +0000</pubDate>
      <link>https://dev.to/naveedkumbhar/apache-kafka-tutorial-kraft-docker-consumer-groups-mih</link>
      <guid>https://dev.to/naveedkumbhar/apache-kafka-tutorial-kraft-docker-consumer-groups-mih</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://blog.naveedkumbhar.com/apache-kafka/" rel="noopener noreferrer"&gt;Naveed Ahmed's Engineering Blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Apache Kafka is often described as a messaging system.&lt;/p&gt;

&lt;p&gt;That's partly true, but understanding it as a distributed event log gives you a much clearer picture of how it works.&lt;/p&gt;

&lt;p&gt;Producers write records to partitioned topics. Brokers store those records, and consumers read them at their own pace.&lt;/p&gt;

&lt;p&gt;Unlike a traditional work queue, Kafka can retain events after they've been consumed, allowing different applications to process or replay them independently.&lt;/p&gt;

&lt;p&gt;Let's walk through the key concepts and a small hands-on example.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. How Apache Kafka Works
&lt;/h2&gt;

&lt;p&gt;A simplified architecture looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Producer
   |
   v
Kafka Topic
   |
   +-- Partition 0
   +-- Partition 1
   +-- Partition 2
   |
   v
Consumer Group
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each partition is an ordered sequence of records.&lt;/p&gt;

&lt;p&gt;Kafka uses offsets to identify record positions within a partition.&lt;/p&gt;

&lt;p&gt;If you have three partitions, you can have up to three actively assigned consumers within one consumer group for that topic.&lt;/p&gt;

&lt;p&gt;Adding more consumers than partitions doesn't create additional partition-processing parallelism.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. What Is KRaft?
&lt;/h2&gt;

&lt;p&gt;Modern Apache Kafka uses KRaft to manage cluster metadata without an external ZooKeeper deployment.&lt;/p&gt;

&lt;p&gt;KRaft controllers form a quorum responsible for metadata decisions, while brokers handle client requests and partition storage.&lt;/p&gt;

&lt;p&gt;This separation matters when you're investigating broker failures, partition leadership changes, or controller health.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Start Kafka with Docker
&lt;/h2&gt;

&lt;p&gt;For a quick local test, you can start Kafka with the official Docker image:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker run &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--name&lt;/span&gt; kafka-local &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-p&lt;/span&gt; 127.0.0.1:9092:9092 &lt;span class="se"&gt;\&lt;/span&gt;
  apache/kafka:4.4.0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This example uses the image's default single-node configuration for development.&lt;/p&gt;

&lt;p&gt;Create a topic:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker &lt;span class="nb"&gt;exec &lt;/span&gt;kafka-local &lt;span class="se"&gt;\&lt;/span&gt;
  /opt/kafka/bin/kafka-topics.sh &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--create&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--topic&lt;/span&gt; orders.events &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--partitions&lt;/span&gt; 3 &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--replication-factor&lt;/span&gt; 1 &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--bootstrap-server&lt;/span&gt; localhost:9092
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Inspect it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker &lt;span class="nb"&gt;exec &lt;/span&gt;kafka-local &lt;span class="se"&gt;\&lt;/span&gt;
  /opt/kafka/bin/kafka-topics.sh &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--describe&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--topic&lt;/span&gt; orders.events &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--bootstrap-server&lt;/span&gt; localhost:9092
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This gives you a simple environment for learning partitions and offsets.&lt;/p&gt;

&lt;p&gt;It isn't a highly available Kafka cluster.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Produce and Consume Events
&lt;/h2&gt;

&lt;p&gt;Write a message:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s1"&gt;'{"orderId":101,"status":"created"}'&lt;/span&gt; | &lt;span class="se"&gt;\&lt;/span&gt;
docker &lt;span class="nb"&gt;exec&lt;/span&gt; &lt;span class="nt"&gt;-i&lt;/span&gt; kafka-local &lt;span class="se"&gt;\&lt;/span&gt;
  /opt/kafka/bin/kafka-console-producer.sh &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--topic&lt;/span&gt; orders.events &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--bootstrap-server&lt;/span&gt; localhost:9092
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Read messages:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker &lt;span class="nb"&gt;exec &lt;/span&gt;kafka-local &lt;span class="se"&gt;\&lt;/span&gt;
  /opt/kafka/bin/kafka-console-consumer.sh &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--topic&lt;/span&gt; orders.events &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--from-beginning&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--timeout-ms&lt;/span&gt; 10000 &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--bootstrap-server&lt;/span&gt; localhost:9092
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You now have a local Kafka workflow using a producer, topic, and consumer.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Production Kafka Is a Different Problem
&lt;/h2&gt;

&lt;p&gt;Running one broker on a laptop is easy compared with managing a replicated cluster.&lt;/p&gt;

&lt;p&gt;In production, pay attention to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Replication factor and minimum in-sync replicas&lt;/li&gt;
&lt;li&gt;Broker disk capacity and I/O&lt;/li&gt;
&lt;li&gt;Consumer group lag&lt;/li&gt;
&lt;li&gt;Partition leadership&lt;/li&gt;
&lt;li&gt;Authentication and authorization&lt;/li&gt;
&lt;li&gt;KRaft controller quorum health&lt;/li&gt;
&lt;li&gt;Recovery and upgrade procedures&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For Kubernetes, operators such as Strimzi can help manage cluster lifecycle, but they don't remove the need for careful storage and capacity planning.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Investigating Consumer Lag
&lt;/h2&gt;

&lt;p&gt;Consumer lag tells you how far a consumer group is behind the latest available partition offsets.&lt;/p&gt;

&lt;p&gt;Use:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker &lt;span class="nb"&gt;exec &lt;/span&gt;kafka-local &lt;span class="se"&gt;\&lt;/span&gt;
  /opt/kafka/bin/kafka-consumer-groups.sh &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--bootstrap-server&lt;/span&gt; localhost:9092 &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--describe&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--group&lt;/span&gt; inventory-service
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The group must exist and have committed offsets for meaningful output.&lt;/p&gt;

&lt;p&gt;If lag is increasing, check whether event production exceeds processing capacity.&lt;/p&gt;

&lt;p&gt;Also investigate slow downstream dependencies, consumer exceptions, frequent rebalances, and partition counts.&lt;/p&gt;

&lt;p&gt;Avoid resetting offsets without understanding the risk of skipping or replaying records.&lt;/p&gt;




&lt;h2&gt;
  
  
  Read the Complete Apache Kafka Guide
&lt;/h2&gt;

&lt;p&gt;The original article goes deeper into Kafka storage internals, KRaft, Docker Compose, Kafka vs RabbitMQ, Spring Boot, Strimzi, and production runbooks.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://blog.naveedkumbhar.com/apache-kafka/" rel="noopener noreferrer"&gt;Read Apache Kafka Architecture &amp;amp; Hands-On Production Guide&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;Kafka becomes much easier to operate once you understand how partitions, offsets, replication, and consumer groups work together.&lt;/p&gt;

&lt;p&gt;The challenge isn't just sending messages. It's making the streaming platform reliable when workloads grow and failures happen.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What's the most difficult Kafka problem you've investigated in production?&lt;/strong&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Written by Naveed Ahmed — DevOps &amp;amp; Platform Engineering&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://blog.naveedkumbhar.com" rel="noopener noreferrer"&gt;Engineering Blog&lt;/a&gt; | &lt;a href="https://github.com/naveedkumbhar" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;&lt;/p&gt;

</description>
      <category>kafka</category>
      <category>devops</category>
      <category>docker</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
