<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Khushboo Sah on Medium]]></title>
        <description><![CDATA[Stories by Khushboo Sah on Medium]]></description>
        <link>https://medium.com/@khushboo.sah067?source=rss-6ff205473ef0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*1ciau97_3JFucDf1E-ELHg.jpeg</url>
            <title>Stories by Khushboo Sah on Medium</title>
            <link>https://medium.com/@khushboo.sah067?source=rss-6ff205473ef0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 19:31:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@khushboo.sah067/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Kubernetes Pod Troubleshooting: A Practical Guide to Finding the Root Cause]]></title>
            <link>https://medium.com/@khushboo.sah067/kubernetes-pod-troubleshooting-a-practical-guide-to-finding-the-root-cause-a104ce65d826?source=rss-6ff205473ef0------2</link>
            <guid isPermaLink="false">https://medium.com/p/a104ce65d826</guid>
            <dc:creator><![CDATA[Khushboo Sah]]></dc:creator>
            <pubDate>Sat, 05 Sep 2026 08:44:29 GMT</pubDate>
            <atom:updated>2026-09-05T08:44:29.930Z</atom:updated>
            <content:encoded><![CDATA[<p>If you work with Kubernetes, sooner or later you will see Pods stuck in Pending, CrashLoopBackOff, ImagePullBackOff, or OOMKilled.</p><p>The real challenge isn’t knowing what these statuses mean.</p><p>The real skill is being able to answer:</p><p><strong>“Why is this Pod failing, and what should I check next?”</strong></p><p>In production environments, troubleshooting should be systematic rather than based on guesswork.</p><p>This article covers some of the most common Kubernetes Pod problems, their possible root causes, the commands I would use to diagnose them, and the typical fixes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s_SINebMrYNYz4dd1HMtTA.png" /></figure><h3>1. Start With the Basics</h3><p>When someone reports:</p><blockquote><em>“The application is down.”</em></blockquote><p>My first step isn’t to restart the Pod.</p><p>I first check the current state:</p><pre>kubectl get pods</pre><p>For example:</p><pre>NAME                    READY   STATUS             RESTARTS   AGE<br>web-app-7d8f9c7d-x2k4   0/1     CrashLoopBackOff   8          5m</pre><p>The STATUS immediately gives us a direction.</p><p>However, it is important to remember that values such as CrashLoopBackOff and Terminating are commonly displayed by kubectl, but they aren&#39;t Pod phases themselves. Kubernetes tracks Pod phases such as Pending, Running, Succeeded, Failed, and Unknown. (<a href="https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/?120e38f1_page=2&amp;3edc87e7_page=1&amp;7c8a2135_page=2&amp;af1115ab_page=2&amp;b1d59910_page=2&amp;utm_source=chatgpt.com">Kubernetes</a>)</p><p>From here, I investigate based on the specific condition.</p><h3>2. Pod in Pending</h3><h3>What does it mean?</h3><p>A Pod in Pending generally hasn&#39;t been successfully scheduled or isn&#39;t fully ready to start.</p><p>Common causes include:</p><ul><li>Insufficient CPU</li><li>Insufficient memory</li><li>Node taints</li><li>Node affinity/anti-affinity</li><li>Node selectors</li><li>PVC problems</li><li>Scheduling constraints</li></ul><h3>Diagnosis</h3><pre>kubectl describe pod &lt;pod-name&gt;</pre><p>Then check the <strong>Events</strong> section.</p><p>For example:</p><pre>Events:<br>  Warning  FailedScheduling<br>  0/3 nodes are available:<br>  3 Insufficient cpu</pre><p>Now we have a root-cause direction.</p><p>We can also inspect nodes:</p><pre>kubectl get nodes<br>kubectl describe nodes</pre><h3>Possible fixes</h3><p>Depending on the cause:</p><ul><li>Add more nodes</li><li>Reduce CPU/memory requests</li><li>Remove conflicting scheduling constraints</li><li>Fix node labels</li><li>Add the required toleration</li><li>Resolve PVC binding problems</li></ul><p>Kubernetes specifically recommends checking scheduling events when a Pod remains pending; messages such as Insufficient cpu or memory-related failures can point directly to the problem. (<a href="https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/?utm_source=chatgpt.com">Kubernetes</a>)</p><h3>3. ImagePullBackOff</h3><p>This is one of the most common issues you’ll encounter.</p><h3>What does it mean?</h3><p>Kubernetes tried to pull the container image but couldn’t.</p><p>Example:</p><pre>STATUS<br>ImagePullBackOff</pre><p>Possible causes:</p><ul><li>Incorrect image name</li><li>Incorrect image tag</li><li>Private container registry</li><li>Missing imagePullSecret</li><li>Registry authentication failure</li><li>Registry/network connectivity problem</li></ul><h3>Diagnosis</h3><pre>kubectl describe pod &lt;pod-name&gt;</pre><p>Look at the Events:</p><pre>Failed to pull image &quot;myapp:v5&quot;</pre><p>You may see something like:</p><pre>pull access denied</pre><p>or:</p><pre>manifest unknown</pre><h3>Fix</h3><p>First verify the image:</p><pre>containers:<br>  - name: web<br>    image: myrepo/myapp:v5</pre><p>Make sure the image and tag actually exist.</p><p>For a private registry, configure the appropriate pull secret:</p><pre>imagePullSecrets:<br>  - name: regcred</pre><p>ImagePullBackOff means Kubernetes could not pull the image and will retry with increasing backoff delays. (<a href="https://kubernetes.io/docs/concepts/containers/images/?utm_source=chatgpt.com">Kubernetes</a>)</p><h3>4. ErrImagePull</h3><p>ErrImagePull is closely related to ImagePullBackOff.</p><p>The important difference is that ErrImagePull represents the image-pull failure itself, while ImagePullBackOff indicates Kubernetes is backing off between repeated attempts.</p><h3>Diagnosis</h3><pre>kubectl describe pod &lt;pod-name&gt;</pre><p>Check:</p><pre>Events:<br>  Failed<br>  Failed to pull image</pre><h3>Fix</h3><p>Check:</p><ol><li>Image name</li><li>Image tag</li><li>Registry URL</li><li>Registry credentials</li><li>imagePullSecrets</li><li>Network connectivity</li></ol><p>Don’t immediately change the Pod.</p><p><strong>First identify why the image cannot be pulled.</strong></p><h3>5. CrashLoopBackOff</h3><p>This is probably one of the most important Kubernetes troubleshooting scenarios for a DevOps/SRE interview.</p><h3>What does it mean?</h3><p>The container starts, crashes, Kubernetes restarts it, and the process repeats.</p><p>Kubernetes applies an increasing backoff delay between restart attempts. (<a href="https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/?utm_source=chatgpt.com">Kubernetes</a>)</p><p>Example:</p><pre>STATUS<br>CrashLoopBackOff</pre><h3>Common causes</h3><ul><li>Application bug</li><li>Incorrect environment variable</li><li>Missing configuration</li><li>Incorrect command/entrypoint</li><li>Dependency unavailable</li><li>Failed health check</li><li>Application unable to connect to a database</li><li>Insufficient resources</li></ul><h3>First thing I check</h3><pre>kubectl logs &lt;pod-name&gt;</pre><p>If the container has already restarted:</p><pre>kubectl logs &lt;pod-name&gt; --previous</pre><p>The --previous option is extremely useful because it lets you inspect logs from the previous container instance.</p><p>Then:</p><pre>kubectl describe pod &lt;pod-name&gt;</pre><h3>Example</h3><p>Suppose the logs show:</p><pre>Error: DATABASE_URL environment variable is missing</pre><p>Now the problem isn’t Kubernetes itself.</p><p>The application is missing its database configuration.</p><h3>Fix</h3><p>Check:</p><pre>env:<br>  - name: DATABASE_URL<br>    valueFrom:<br>      secretKeyRef:<br>        name: database-secret<br>        key: url</pre><p>Verify that the Secret exists and the key is correct.</p><h3>6. OOMKilled</h3><p>OOMKilled means the container was terminated because it exceeded its memory limit.</p><p>For example:</p><pre>Last State:<br>  Terminated<br>  Reason: OOMKilled<br>  Exit Code: 137</pre><h3>Diagnosis</h3><pre>kubectl describe pod &lt;pod-name&gt;</pre><p>Look for:</p><pre>Reason: OOMKilled<br>Exit Code: 137</pre><p>You should also check the container’s resource configuration:</p><pre>resources:<br>  requests:<br>    memory: &quot;256Mi&quot;<br>  limits:<br>    memory: &quot;512Mi&quot;</pre><h3>Possible fixes</h3><p>There are two important approaches.</p><h3>Option 1 — Application problem</h3><p>Investigate whether the application has:</p><ul><li>Memory leaks</li><li>Excessive memory usage</li><li>Unexpected traffic</li><li>Inefficient processing</li></ul><h3>Option 2 — Resource configuration</h3><p>If the application legitimately needs more memory, increase the limit.</p><p>For example:</p><pre>limits:<br>  memory: &quot;1Gi&quot;</pre><p>Kubernetes documentation also shows OOMKilled with exit code 137 when a container exceeds its configured memory limit. (<a href="https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/?utm_source=chatgpt.com">Kubernetes</a>)</p><p><strong>Important:</strong> Increasing the memory limit without understanding the reason can simply hide an application problem.</p><h3>7. CreateContainerError</h3><p>This usually means Kubernetes couldn’t create the container because of a configuration or dependency problem.</p><p>Common causes:</p><ul><li>Missing Secret</li><li>Missing ConfigMap</li><li>Missing volume</li><li>Incorrect volume configuration</li><li>Incorrect environment configuration</li><li>Permission issues</li></ul><h3>Diagnosis</h3><pre>kubectl describe pod &lt;pod-name&gt;</pre><p>Again, the <strong>Events</strong> section is very important.</p><p>For example:</p><pre>MountVolume.SetUp failed<br>secret &quot;app-secret&quot; not found</pre><p>Now the solution is straightforward:</p><pre>kubectl get secret</pre><p>Check whether the required Secret exists in the correct namespace.</p><p>Remember that Kubernetes resources such as Secrets and ConfigMaps are namespace-scoped, so the Pod must reference the resource in the appropriate namespace.</p><h3>8. Evicted</h3><p>A Pod can be evicted when the node is experiencing resource pressure.</p><p>Common causes include:</p><ul><li>Memory pressure</li><li>Disk pressure</li><li>Too many Pods</li><li>Insufficient node resources</li></ul><h3>Diagnosis</h3><pre>kubectl describe pod &lt;pod-name&gt;</pre><p>Check the reason.</p><p>Also inspect the node:</p><pre>kubectl describe node &lt;node-name&gt;</pre><p>Look for conditions such as:</p><pre>MemoryPressure<br>DiskPressure</pre><h3>Possible fixes</h3><ul><li>Free disk space</li><li>Add more nodes</li><li>Reduce resource consumption</li><li>Configure appropriate resource requests</li><li>Investigate workloads consuming excessive resources</li></ul><h3>9. Pod Stuck in Terminating</h3><p>Sometimes you delete a Pod:</p><pre>kubectl delete pod &lt;pod-name&gt;</pre><p>but it remains in:</p><pre>Terminating</pre><p>One possible cause is a <strong>finalizer</strong> preventing deletion.</p><h3>Check finalizers</h3><pre>kubectl get pod &lt;pod-name&gt; -o yaml</pre><p>Look for:</p><pre>metadata:<br>  finalizers:<br>    - example.com/finalizer</pre><p>A finalizer is essentially telling Kubernetes:</p><blockquote><em>“Don’t completely delete this resource until I finish my cleanup.”</em></blockquote><h3>Troubleshooting</h3><p>If you’re certain the finalizer is stale and it is safe to remove it, you can patch the Pod:</p><pre>kubectl patch pod &lt;pod-name&gt; \<br>  -p &#39;{&quot;metadata&quot;:{&quot;finalizers&quot;:null}}&#39;</pre><p>This should be used carefully, because removing a finalizer can bypass cleanup that another controller expects to perform.</p><h3>10. Unschedulable</h3><p>Sometimes Kubernetes repeatedly tries to schedule a Pod but cannot find a suitable node.</p><p>The reasons may include:</p><ul><li>Insufficient CPU</li><li>Insufficient memory</li><li>Node taints</li><li>Node selectors</li><li>Affinity rules</li><li>Pod topology constraints</li><li>Resource requests that are too large</li></ul><h3>Diagnosis</h3><pre>kubectl describe pod &lt;pod-name&gt;</pre><p>Check:</p><pre>Events:<br>  FailedScheduling</pre><p>Then inspect:</p><pre>kubectl get nodes --show-labels</pre><p>and:</p><pre>kubectl describe nodes</pre><h3>My Kubernetes Troubleshooting Workflow</h3><p>Instead of memorizing dozens of commands, I try to follow a simple workflow:</p><pre>Pod Problem<br>                   |<br>                   v<br>           kubectl get pods<br>                   |<br>                   v<br>          Identify the STATUS<br>                   |<br>       +-----------+-----------+<br>       |           |           |<br>    Pending    ImagePull    CrashLoop<br>       |           |           |<br>       v           v           v<br>   Scheduling     Image       Logs<br>    Events        Events      --previous<br>       |           |           |<br>       +-----------+-----------+<br>                   |<br>                   v<br>          kubectl describe pod<br>                   |<br>                   v<br>              Check Events<br>                   |<br>                   v<br>             Find Root Cause<br>                   |<br>                   v<br>              Apply Fix<br>                   |<br>                   v<br>          Verify the Pod Again</pre><p>The most important commands I keep coming back to are:</p><pre>kubectl get pods</pre><pre>kubectl describe pod &lt;pod-name&gt;</pre><pre>kubectl logs &lt;pod-name&gt;</pre><pre>kubectl logs &lt;pod-name&gt; --previous</pre><pre>kubectl get events --sort-by=.lastTimestamp</pre><pre>kubectl get nodes</pre><pre>kubectl describe node &lt;node-name&gt;</pre><h3>The Most Important Lesson</h3><p>When troubleshooting Kubernetes, <strong>don’t treat the status as the root cause</strong>.</p><p>For example:</p><p><strong>CrashLoopBackOff is not the root cause.</strong></p><p>It tells you:</p><blockquote><em>“Something is repeatedly causing the container to fail.”</em></blockquote><p>Your job is to find <strong>what caused it to fail</strong>.</p><p>Likewise:</p><p><strong>Pending is not the root cause.</strong></p><p>You need to investigate scheduling events to determine whether it’s CPU, memory, taints, affinity, PVCs, or another constraint.</p><p>And:</p><p><strong>OOMKilled tells you what happened, but you still need to determine why the application consumed too much memory.</strong></p><p>This is the difference between knowing Kubernetes commands and actually being able to <strong>troubleshoot Kubernetes in a production environment</strong>.</p><h3>Quick Kubernetes Troubleshooting Cheat Sheet</h3><p>StatusThink AboutFirst CheckPendingScheduling/resources/PVCkubectl describe podImagePullBackOffImage/registry/authkubectl describe podErrImagePullImage pull failurekubectl describe podCrashLoopBackOffApplication/config/probeskubectl logs --previousOOMKilledMemory limit/usagekubectl describe podCreateContainerErrorSecret/ConfigMap/volumekubectl describe podEvictedNode resource pressurekubectl describe pod/nodeTerminatingFinalizer/cleanupkubectl get pod -o yamlUnschedulableScheduling constraintsPod Events</p><h3>Final Thoughts</h3><p>Kubernetes troubleshooting is a skill that improves with <strong>real incidents and hands-on practice</strong>.</p><p>My goal is not just to memorize commands like:</p><pre>kubectl describe pod</pre><p>but to understand:</p><p><strong>Symptom → Evidence → Root Cause → Fix → Verification</strong></p><p>That mindset is useful not only for Kubernetes, but for DevOps, SRE, Cloud Operations, and production troubleshooting in general.</p><p>If you are preparing for a DevOps/SRE interview, I highly recommend practicing these scenarios as <strong>incident-based questions</strong>, rather than only studying definitions.</p><h3>Useful Kubernetes documentation</h3><p>The official Kubernetes documentation has dedicated guides for debugging Pods, understanding Pod lifecycle, container images, and resource management. (<a href="https://kubernetes.io/docs/tasks/debug/debug-application/debug-pods/?authuser=0&amp;utm_source=chatgpt.com">Kubernetes</a>)</p><p><a href="https://kubernetes.io/docs/tasks/debug/debug-application/debug-pods/?utm_source=chatgpt.com">Kubernetes — Debug Pods</a></p><p><a href="https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/?utm_source=chatgpt.com">Kubernetes — Pod Lifecycle</a></p><p><a href="https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/?utm_source=chatgpt.com">Kubernetes — Resource Management</a></p><p><strong>Tags:</strong><br>#Kubernetes #DevOps #SRE #CloudComputing #Docker #AWS #KubernetesTroubleshooting #DevOpsEngineer #CloudEngineer #Linux #CNCF</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a104ce65d826" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS CodePipeline Best Practices Explained: Parallel Actions, Manual Approval, Multi-Region…]]></title>
            <link>https://medium.com/@khushboo.sah067/aws-codepipeline-best-practices-explained-parallel-actions-manual-approval-multi-region-4bea85dbf438?source=rss-6ff205473ef0------2</link>
            <guid isPermaLink="false">https://medium.com/p/4bea85dbf438</guid>
            <dc:creator><![CDATA[Khushboo Sah]]></dc:creator>
            <pubDate>Thu, 23 Jul 2026 23:19:57 GMT</pubDate>
            <atom:updated>2026-07-23T23:19:57.453Z</atom:updated>
            <content:encoded><![CDATA[<h3>AWS CodePipeline Best Practices Explained: Parallel Actions, Manual Approval, Multi-Region Deployment &amp; More</h3><p>Modern software delivery is all about speed, automation, and reliability. AWS <strong>CodePipeline</strong> is a fully managed Continuous Integration and Continuous Delivery (CI/CD) service that helps automate the release process from source code to production.</p><p>In this article, we’ll explore some of the most important <strong>AWS CodePipeline best practices</strong> with simple explanations and flow diagrams.</p><h3>What is AWS CodePipeline?</h3><p>AWS CodePipeline automates the entire software release process.</p><p>Instead of manually building, testing, and deploying code, CodePipeline executes every stage automatically whenever new code is committed.</p><p>A typical pipeline looks like this:</p><pre>Developer<br>     │<br>     ▼<br>CodeCommit<br>     │<br>     ▼<br>CodeBuild<br>     │<br>     ▼<br>CodeDeploy<br>     │<br>     ▼<br>Production</pre><p>Every time developers push code, the pipeline starts automatically.</p><h3>1. Deploy to Multiple Environments Using One CodeDeploy Action</h3><p>Many beginners create multiple CodeDeploy actions for different environments. AWS recommends using <strong>one CodeDeploy action with multiple Deployment Groups</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mJW9v5z0Xqm6JY08CtOrPw.png" /></figure><h3>Flow</h3><pre>CodeCommit<br>                 │<br>                 ▼<br>            CodePipeline<br>                 │<br>                 ▼<br>            CodeDeploy<br>         ┌────────┼────────┐<br>         ▼        ▼        ▼<br>      Dev       Test      Production</pre><h3>Benefits</h3><ul><li>Easier pipeline management</li><li>Less duplication</li><li>Consistent deployments</li><li>Scales easily</li></ul><p>Instead of maintaining separate deployment actions for Dev, Test, and Production, CodeDeploy handles all deployment groups efficiently.</p><h3>2. Speed Up Pipelines Using Parallel Actions</h3><p>By default, CodePipeline executes actions one after another.</p><h3>Sequential Execution</h3><pre>CodeCommit<br>     │<br>     ▼<br>Build<br>     │<br>     ▼<br>Unit Test<br>     │<br>     ▼<br>Integration Test</pre><p>This increases the total execution time.</p><p>Instead, AWS allows actions with the <strong>same RunOrder</strong> to execute simultaneously.</p><h3>Parallel Execution</h3><pre>CodeCommit<br>                 │<br>      ┌──────────┴──────────┐<br>      ▼                     ▼<br>   Build               Unit Test</pre><h3>Benefits</h3><ul><li>Faster pipeline execution</li><li>Reduced deployment time</li><li>Better utilization of AWS resources</li></ul><p>This approach is commonly used for:</p><ul><li>Multiple test suites</li><li>Multi-region deployments</li><li>Static code analysis</li><li>Security scanning</li></ul><h3>3. Use Manual Approval Before Production</h3><p>Production environments should never receive code automatically without validation.</p><p>A common enterprise workflow looks like this:</p><pre>CodeCommit<br>      │<br>      ▼<br>CodeBuild<br>      │<br>      ▼<br>Deploy to Pre-Production<br>      │<br>      ▼<br> Manual Approval<br>      │<br>      ▼<br>Deploy to Production</pre><p>The Manual Approval stage allows managers, QA teams, or DevOps engineers to verify the deployment before production.</p><h3>Benefits</h3><ul><li>Prevents accidental deployments</li><li>Adds governance</li><li>Improves release quality</li></ul><h3>4. Monitor Pipeline Events Using Amazon EventBridge</h3><p>Every stage of CodePipeline generates events.</p><p>Amazon EventBridge can monitor these events and trigger automated actions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tDfv-kXrTSORVqyWJwN4oA.png" /></figure><h3>Example</h3><pre>CodeBuild<br>     │<br>     ▼<br> Build Failed<br>     │<br>     ▼<br>EventBridge<br>     │<br> ┌───┴──────────┐<br> ▼              ▼<br>SNS          Lambda<br>Email      Auto Diagnosis</pre><p>Possible use cases:</p><ul><li>Send email notifications</li><li>Trigger Slack alerts</li><li>Start automated diagnostics</li><li>Execute recovery workflows</li></ul><h3>5. Extend CodePipeline with AWS Lambda</h3><p>Sometimes a pipeline needs to perform custom operations like:</p><ul><li>Calling REST APIs</li><li>Updating third-party systems</li><li>Running custom validation logic</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7P5fTQ6NqYAPA4uwQdCaVg.png" /></figure><p>CodePipeline cannot directly call external APIs.</p><p>Instead, it invokes Lambda.</p><pre>CodePipeline<br>      │<br>      ▼<br> AWS Lambda<br>      │<br>      ▼<br> External REST API</pre><p>Lambda acts as a bridge between CodePipeline and external services.</p><h3>6. Integrate AWS Step Functions</h3><p>For complex workflows involving multiple AWS services, Step Functions are an excellent choice.</p><h3>Example Workflow</h3><pre>CodePipeline<br>      │<br>      ▼<br> Step Functions<br>      │<br> ┌────┼───────────┐<br> ▼    ▼           ▼<br>DynamoDB ECS     Lambda</pre><p>Step Functions can orchestrate:</p><ul><li>ECS Tasks</li><li>Lambda Functions</li><li>DynamoDB operations</li><li>SQS</li><li>SNS</li><li>API calls</li></ul><p>This enables sophisticated deployment workflows beyond simple CI/CD.</p><h3>7. Multi-Region Deployment</h3><p>Many organizations deploy applications in multiple AWS Regions for:</p><ul><li>High Availability</li><li>Disaster Recovery</li><li>Low Latency</li></ul><p>CodePipeline supports cross-region deployments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Sf6X_gr-H9_fmf8AMCcdig.png" /></figure><h3>Example</h3><pre>CodeCommit<br>                      │<br>                      ▼<br>                 CodeBuild<br>                      │<br>          ┌───────────┴───────────┐<br>          ▼                       ▼<br>Template-EU               Template-US<br>          │                       │<br>          ▼                       ▼<br>CloudFormation EU       CloudFormation US<br>          │                       │<br>          ▼                       ▼<br> Lambda EU             Lambda US</pre><p>A single pipeline can deploy applications across multiple AWS Regions.</p><h3>8. Artifact Stores in Multi-Region Pipelines</h3><p>This is one of the most important concepts in AWS DevOps Professional certification.</p><p>Every region containing pipeline actions <strong>must have its own S3 Artifact Store</strong>.</p><h3>Flow</h3><pre>CodePipeline<br>                │<br>                ▼<br>      Artifact Store (EU)<br>                │<br>     Automatic Copy<br>                │<br>                ▼<br>      Artifact Store (US)</pre><p>Artifacts include:</p><ul><li>ZIP packages</li><li>Build outputs</li><li>CloudFormation templates</li><li>Lambda deployment packages</li></ul><p>AWS automatically copies artifacts between regions.</p><p>Developers don’t have to manually copy files.</p><h3>9. Cross-Region Deployment Process</h3><p>Let’s understand the complete workflow.</p><pre>CodeCommit<br>      │<br>      ▼<br>CodeBuild<br>      │<br>      ▼<br>Artifacts<br>      │<br>      ▼<br>S3 Artifact Store (EU)<br>      │<br> Automatic Copy<br>      │<br>      ▼<br>S3 Artifact Store (US)<br>      │<br>      ▼<br>CloudFormation<br>      │<br>      ▼<br>Lambda Deployment</pre><p>CodePipeline manages artifact replication behind the scenes.</p><p>This greatly simplifies multi-region deployments.</p><h3>Best Practices Summary</h3><ul><li>Use a single CodeDeploy action with multiple Deployment Groups.</li><li>Run independent tasks in parallel using the same <strong>RunOrder</strong>.</li><li>Add Manual Approval before Production deployments.</li><li>Monitor pipeline events with Amazon EventBridge.</li><li>Use AWS Lambda for custom integrations and API calls.</li><li>Use Step Functions for complex orchestration.</li><li>Create an S3 Artifact Store for every AWS Region involved in the pipeline.</li><li>Allow CodePipeline service roles access to all artifact buckets.</li><li>Use cross-region deployment for highly available applications.</li></ul><h3>Final Thoughts</h3><p>AWS CodePipeline is much more than a CI/CD service. When combined with <strong>CodeBuild, CodeDeploy, EventBridge, Lambda, Step Functions, CloudFormation, and S3</strong>, it becomes a powerful automation platform capable of deploying applications across multiple environments and regions with minimal manual effort.</p><p>By following these best practices, teams can build pipelines that are faster, more reliable, scalable, and production-ready.</p><p>Whether you’re preparing for the <strong>AWS Certified DevOps Engineer — Professional</strong> exam or implementing CI/CD in production, mastering these advanced CodePipeline concepts will significantly improve your deployment workflows.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4bea85dbf438" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building an AI Kubernetes Troubleshooting Agent with Python, FastAPI, React, and OpenRouter]]></title>
            <link>https://medium.com/@khushboo.sah067/building-an-ai-kubernetes-troubleshooting-agent-with-python-fastapi-react-and-openrouter-9e2cfabe88bd?source=rss-6ff205473ef0------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e2cfabe88bd</guid>
            <dc:creator><![CDATA[Khushboo Sah]]></dc:creator>
            <pubDate>Sat, 04 Jul 2026 10:31:26 GMT</pubDate>
            <atom:updated>2026-07-04T23:09:43.143Z</atom:updated>
            <content:encoded><![CDATA[<p>Kubernetes has become the standard platform for deploying modern applications, whether they are traditional web services or AI/ML workloads. While Kubernetes makes application deployment easier, troubleshooting production issues is still one of the biggest challenges for developers and DevOps engineers.</p><p>In this project, we’ll build an <strong>AI-powered Kubernetes Troubleshooting Agent</strong> that automatically investigates cluster issues, analyzes Kubernetes resources, identifies the root cause using AI, and even suggests possible fixes.</p><p>Let’s explore how this entire system works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dj-2Ks4H-nVWJBbAGTFj0Q.png" /></figure><h3>Why Do We Need an AI Kubernetes Troubleshooting Agent?</h3><p>Imagine a developer deploys an application to a Kubernetes cluster.</p><p>Everything works initially, but after some time the application becomes unavailable.</p><p>Now the developer has to answer questions like:</p><ul><li>Why is my pod not running?</li><li>Is it a networking issue?</li><li>Is the image missing?</li><li>Did the deployment fail?</li><li>Is it a CrashLoopBackOff?</li><li>Is there a readiness or liveness probe failure?</li></ul><p>Most developers aren’t Kubernetes experts, so they usually reach out to the DevOps team.</p><p>When multiple developers face similar issues every day, DevOps engineers spend a significant amount of time on repetitive troubleshooting instead of building infrastructure.</p><p>This is where an AI Kubernetes Agent can make a huge difference.</p><h3>Project Goal</h3><p>The goal is to build an intelligent platform where a developer simply selects a Kubernetes cluster, clicks <strong>Investigate Cluster</strong>, and receives:</p><ul><li>Root cause analysis</li><li>Suggested fixes</li><li>kubectl commands</li><li>AI confidence score</li><li>Investigation history</li></ul><p>All within a few seconds.</p><h3>Technology Stack</h3><p>The project uses a modern and minimal technology stack.</p><h3>Kubernetes</h3><ul><li>Kind (Local Kubernetes Cluster)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tPtXyg3Zvvy5Xim6sSY0Yg.png" /></figure><h3>Backend</h3><ul><li>Python</li><li>FastAPI</li><li>kubectl</li></ul><h3>Frontend</h3><ul><li>React / Next.js</li></ul><h3>AI</h3><ul><li>OpenRouter</li></ul><h3>Backend Services</h3><ul><li>Ins Platform</li><li>Database</li><li>Authentication</li><li>Storage</li><li>Deployment</li><li>LLM Integration</li></ul><h3>High-Level Architecture</h3><p>The application follows a simple but powerful workflow.</p><pre>Developer</pre><pre>↓</pre><pre>Frontend Dashboard</pre><pre>↓</pre><pre>FastAPI Backend</pre><pre>↓</pre><pre>kubectl</pre><pre>↓</pre><pre>Kubernetes Cluster</pre><pre>↓</pre><pre>Collect Logs<br>Collect Events<br>Collect Pod Status<br>Collect Deployments<br>Collect Networking Information</pre><pre>↓</pre><pre>OpenRouter LLM</pre><pre>↓</pre><pre>Root Cause Analysis</pre><pre>↓</pre><pre>Save Investigation History</pre><pre>↓</pre><pre>Display Results</pre><p>The AI doesn’t directly access Kubernetes.</p><p>Instead, the backend collects all relevant cluster information and sends structured data to the language model for analysis.</p><h3>How Investigation Works</h3><p>When the user clicks <strong>Investigate Cluster</strong>, the backend starts collecting Kubernetes diagnostics.</p><p>It gathers:</p><ul><li>Pod Status</li><li>Pod Health</li><li>Logs</li><li>Kubernetes Events</li><li>Deployment Information</li><li>Network Details</li><li>Resource Status</li></ul><p>Once everything is collected, the information is sent to the AI model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y83fXLGV0QwnZUiGV1oFnA.png" /></figure><p>The LLM performs reasoning and returns:</p><ul><li>Root cause</li><li>Explanation</li><li>Suggested fix</li><li>kubectl commands</li><li>Confidence score</li></ul><h3>Why Confidence Score Matters</h3><p>AI should never pretend to be 100% accurate.</p><p>That’s why every investigation includes a confidence score.</p><p>For example:</p><ul><li>80% Confidence</li><li>90% Confidence</li><li>100% Confidence</li></ul><p>This helps developers understand how reliable the diagnosis is before applying any suggested fix.</p><h3>Investigation History</h3><p>Every investigation is stored inside the database.</p><p>This allows teams to review previous incidents later.</p><p>For every investigation, the system stores:</p><ul><li>User</li><li>Cluster</li><li>Namespace</li><li>Root Cause</li><li>Investigation Status</li><li>Suggested Fix</li><li>Timestamp</li></ul><p>This creates a complete troubleshooting history for the organization.</p><h3>Authentication and Security</h3><p>Not every user should have access to every Kubernetes cluster.</p><p>The project includes authentication so only authorized users can investigate specific environments.</p><p>This makes the solution suitable for enterprise organizations where production clusters require strict access control.</p><h3>Building the Project with AI</h3><p>Instead of manually writing every file, the project uses an AI coding assistant.</p><p>Large prompts are provided to generate:</p><ul><li>Project structure</li><li>Backend modules</li><li>Kubernetes investigation engine</li><li>AI reasoning layer</li><li>Dashboard</li><li>Authentication</li><li>Database integration</li><li>Frontend integration</li></ul><p>This significantly speeds up development while keeping the project modular.</p><h3>Real Kubernetes Testing</h3><p>The project is tested against real Kubernetes failures.</p><h3>Scenario 1 — Healthy Cluster</h3><p>The AI scans the cluster.</p><p>It detects only a minor CoreDNS readiness issue and reports that the cluster is otherwise healthy.</p><h3>Scenario 2 — CrashLoopBackOff</h3><p>An NGINX pod is intentionally deployed with a command that exits immediately.</p><p>The pod enters the <strong>CrashLoopBackOff</strong> state.</p><p>The AI agent successfully detects:</p><ul><li>CrashLoopBackOff</li><li>Root cause</li><li>Suggested kubectl command</li><li>Confidence score</li></ul><h3>Scenario 3 — ImagePullBackOff</h3><p>Another pod is deployed using a non-existent Docker image tag.</p><p>The pod enters <strong>ImagePullBackOff</strong>.</p><p>The AI correctly identifies that:</p><ul><li>The image tag is invalid.</li><li>A valid image such as nginx:latest should be used.</li><li>It also suggests the appropriate kubectl command to resolve the issue.</li></ul><h3>End-to-End User Workflow</h3><p>The complete workflow is straightforward.</p><ol><li>User logs in.</li><li>Available Kubernetes clusters are displayed.</li><li>User selects a cluster.</li><li>Clicks <strong>Investigate Cluster</strong>.</li><li>Backend gathers Kubernetes diagnostics.</li><li>AI performs reasoning.</li><li>Root cause and suggested fixes are displayed.</li><li>Investigation is stored in the database.</li><li>Previous investigations remain available for future reference.</li></ol><h3>Key Benefits</h3><p>This AI Kubernetes Troubleshooting Agent offers several advantages:</p><ul><li>Faster Kubernetes debugging</li><li>Reduced DevOps workload</li><li>Better developer productivity</li><li>AI-assisted root cause analysis</li><li>Investigation history</li><li>Secure authentication</li><li>Real-time troubleshooting</li><li>Modern full-stack architecture</li></ul><h3>Final Thoughts</h3><p>Kubernetes troubleshooting often involves reading logs, checking events, inspecting deployments, and analyzing networking before identifying the actual problem. This manual process can consume valuable engineering time.</p><p>By combining FastAPI, React, Kubernetes, OpenRouter, and AI-assisted reasoning, this project demonstrates how repetitive operational tasks can be automated without replacing engineers. Instead, it empowers developers with actionable insights while allowing DevOps teams to focus on solving more complex infrastructure challenges.</p><p>As AI continues to evolve, intelligent operational assistants like this are likely to become an essential part of modern cloud-native platforms, making Kubernetes easier to manage and faster to troubleshoot.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e2cfabe88bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[If These 10 Production Scenarios Scare You, You’re Not Ready for DevOps Yet]]></title>
            <link>https://medium.com/@khushboo.sah067/if-these-10-production-scenarios-scare-you-youre-not-ready-for-devops-yet-d492c6ce60dc?source=rss-6ff205473ef0------2</link>
            <guid isPermaLink="false">https://medium.com/p/d492c6ce60dc</guid>
            <dc:creator><![CDATA[Khushboo Sah]]></dc:creator>
            <pubDate>Wed, 17 Jun 2026 21:10:00 GMT</pubDate>
            <atom:updated>2026-06-17T21:10:00.657Z</atom:updated>
            <content:encoded><![CDATA[<p>Most people think DevOps is about tools.</p><p>Docker.<br>Kubernetes.<br>Terraform.<br>AWS.<br>Jenkins.</p><p>And yes, those tools matter.</p><p>But production outages don’t care how many certifications you have or how many Kubernetes commands you’ve memorized.</p><p>When systems fail at 2 AM, companies don’t need someone who can recite documentation.</p><p>They need someone who can investigate, troubleshoot, and restore services without making things worse.</p><p>That’s what separates a DevOps practitioner from a true DevOps engineer.</p><p>Let’s test your real-world skills.</p><h3>1. Kubernetes Pods Are Running, But Users Can’t Access the Application</h3><p>The first instinct for many engineers is:</p><p>“The pods are healthy, so Kubernetes must be fine.”</p><p>Wrong.</p><p>A running container only confirms that the process is alive.</p><p>Your investigation should include:</p><p>✅ Service configuration</p><p>✅ Endpoint mappings</p><p>✅ Pod labels and selectors</p><p>✅ Readiness and liveness probes</p><p>✅ Ingress or Load Balancer configuration</p><p>✅ Application logs</p><h3>Objective</h3><p>Identify whether the failure is occurring at the application layer, networking layer, or Kubernetes service layer.</p><h3>2. Terraform Deployment Failed Midway</h3><p>A partially completed Terraform deployment can leave your infrastructure in an inconsistent state.</p><p>The worst thing you can do?</p><p>Immediately rerun:</p><pre>terraform apply</pre><p>Instead:</p><p>✅ Review the Terraform state file</p><p>✅ Compare state against actual cloud resources</p><p>✅ Import resources if necessary</p><p>✅ Run terraform plan</p><p>✅ Resolve drift before applying changes</p><h3>Objective</h3><p>Ensure Terraform remains the single source of truth.</p><h3>3. CI/CD Pipeline Shows Success, But Production Still Runs Old Code</h3><p>Many engineers assume a green pipeline means deployment succeeded.</p><p>Not always.</p><p>Things to verify:</p><p>✅ Deployment stage executed successfully</p><p>✅ Correct cluster or environment was targeted</p><p>✅ New container image was built and pushed</p><p>✅ Nodes pulled the latest image</p><p>✅ Pods were recreated</p><p>✅ Cache isn’t serving stale content</p><h3>Objective</h3><p>Find exactly where the release process broke down.</p><h3>4. An EC2 Instance Suddenly Becomes Unreachable</h3><p>Before blaming Linux, start with AWS fundamentals.</p><p>Check:</p><p>✅ EC2 instance status checks</p><p>✅ Security Groups</p><p>✅ Network ACLs</p><p>✅ Route Tables</p><p>✅ IAM permissions</p><p>✅ Session Manager availability</p><p>✅ System logs and console output</p><h3>Objective</h3><p>Determine whether the issue is infrastructure, networking, or operating system related.</p><h3>5. Your Docker Image Is Over 2 GB</h3><p>Large images create multiple problems:</p><p>• Slow deployments</p><p>• Increased storage costs</p><p>• Longer startup times</p><p>• Larger attack surface</p><p>Optimization techniques:</p><p>✅ Multi-stage builds</p><p>✅ Minimal base images</p><p>✅ Distroless containers</p><p>✅ Remove unnecessary dependencies</p><p>✅ Proper .dockerignore usage</p><h3>Objective</h3><p>Build secure and lightweight production images.</p><h3>6. The AWS Bill Increased by 100% Overnight</h3><p>Guessing won’t help.</p><p>Start with data.</p><p>Open Cost Explorer and investigate:</p><p>✅ Which service increased spending</p><p>✅ Usage pattern changes</p><p>✅ Data transfer spikes</p><p>✅ NAT Gateway costs</p><p>✅ EBS volume growth</p><p>✅ S3 storage expansion</p><h3>Objective</h3><p>Identify the exact cost driver before taking action.</p><h3>7. Horizontal Pod Autoscaler Exists, But Pods Never Scale</h3><p>Many engineers immediately blame Kubernetes.</p><p>Usually the root cause is simpler.</p><p>Common issues:</p><p>✅ Metrics Server unavailable</p><p>✅ Missing CPU or memory requests</p><p>✅ Incorrect scaling thresholds</p><p>✅ Maximum replicas already reached</p><p>✅ Metrics not being collected</p><h3>Objective</h3><p>Understand why Kubernetes isn’t receiving valid scaling signals.</p><h3>8. Sensitive Credentials Were Accidentally Pushed to GitHub</h3><p>This is not a cleanup task.</p><p>It’s a security incident.</p><p>Immediate response:</p><p>✅ Revoke exposed credentials</p><p>✅ Rotate all affected secrets</p><p>✅ Remove credentials from repository history</p><p>✅ Review audit logs</p><p>✅ Investigate potential misuse</p><h3>Objective</h3><p>Reduce exposure before attackers can exploit the credentials.</p><h3>9. Monitoring Dashboards Show Everything Green, Yet Users Report Problems</h3><p>One of the biggest monitoring mistakes is focusing only on infrastructure metrics.</p><p>Servers may look healthy while customers struggle.</p><p>Monitor:</p><p>✅ User experience metrics</p><p>✅ Application performance</p><p>✅ Synthetic monitoring</p><p>✅ Real User Monitoring (RUM)</p><p>✅ Business-critical transactions</p><h3>Objective</h3><p>Measure what users experience, not just what servers report.</p><h3>10. You Need to Deploy Without Downtime</h3><p>Production deployments should not be a gamble.</p><p>One of the safest approaches is Blue-Green Deployment.</p><p>Process:</p><p>✅ Deploy a new version to a separate environment</p><p>✅ Validate functionality</p><p>✅ Gradually route traffic</p><p>✅ Monitor key metrics</p><p>✅ Roll back instantly if issues appear</p><h3>Objective</h3><p>Release software safely while minimizing user impact.</p><h3>The Reality of DevOps</h3><p>DevOps isn’t about memorizing commands.</p><p>It’s about solving problems when systems behave unexpectedly.</p><p>The engineers who create the most value are usually not the ones with the most tools listed on their resumes.</p><p>They’re the ones who can:</p><p>✅ Troubleshoot systematically</p><p>✅ Identify root causes quickly</p><p>✅ Communicate clearly during incidents</p><p>✅ Recover services safely</p><p>✅ Stay calm under pressure</p><p>Because in production, nobody remembers how many tools you know.</p><p>They remember whether you fixed the outage.</p><h3>Quick Self-Assessment</h3><p>Out of these 10 scenarios:</p><p>How many could you confidently solve today without searching for the answer?</p><p>Your score is probably a better measure of your DevOps skills than any certification.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d492c6ce60dc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stop Typing kubectl Commands: Kubernetes Aliases That Save Hours Every Month]]></title>
            <link>https://medium.com/@khushboo.sah067/stop-typing-kubectl-commands-kubernetes-aliases-that-save-hours-every-month-296d498ac2e4?source=rss-6ff205473ef0------2</link>
            <guid isPermaLink="false">https://medium.com/p/296d498ac2e4</guid>
            <dc:creator><![CDATA[Khushboo Sah]]></dc:creator>
            <pubDate>Wed, 17 Jun 2026 21:04:10 GMT</pubDate>
            <atom:updated>2026-06-17T21:04:10.823Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’ve worked with Kubernetes long enough, you’ve probably typed:</p><pre>kubectl get pods</pre><p>thousands of times.</p><p>Then:</p><pre>kubectl describe pod &lt;pod-name&gt;<br>kubectl logs -f &lt;pod-name&gt;<br>kubectl get events --sort-by=.metadata.creationTimestamp<br>kubectl port-forward pod/&lt;pod-name&gt; 8080:80</pre><p>And before you realize it, you’re spending a significant portion of your day retyping the same commands.</p><p>The difference between junior and senior Kubernetes engineers isn’t typing speed — it’s efficiency.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y8VORZJYKD2ncicowxpLFA.jpeg" /></figure><p>Experienced engineers automate repetitive work wherever possible. One of the simplest ways to do that is by creating shell aliases for frequently used Kubernetes and Helm commands.</p><p>Let’s explore the aliases that can save you hundreds of keystrokes every day and make incident response significantly faster.</p><h3>Why Kubernetes Aliases Matter</h3><p>In a production environment, every second counts.</p><p>Imagine you’re responding to a critical outage. Instead of typing:</p><pre>kubectl get events --sort-by=.metadata.creationTimestamp</pre><p>you can simply type:</p><pre>kevent</pre><p>The command executes instantly, allowing you to focus on troubleshooting rather than remembering lengthy syntax.</p><p>Over time, these small improvements compound into:</p><ul><li>Faster troubleshooting</li><li>Improved productivity</li><li>Reduced typing errors</li><li>Better workflow efficiency</li><li>Faster incident response</li></ul><h3>Cluster Management Aliases</h3><p>Switching contexts and namespaces is one of the most common Kubernetes tasks.</p><p>Add these aliases to simplify cluster administration:</p><pre>alias kuc=&#39;kubectl config use-context&#39;<br>alias kgc=&#39;kubectl config get-contexts&#39;<br>alias kcc=&#39;kubectl config current-context&#39;<br>alias kns=&#39;kubectl config set-context --current --namespace&#39;</pre><h3>Examples</h3><p>Switch context:</p><pre>kuc production-cluster</pre><p>View available contexts:</p><pre>kgc</pre><p>Set namespace:</p><pre>kns monitoring</pre><p>No more repeatedly typing long kubectl config commands.</p><h3>Cluster Overview Commands</h3><p>When investigating cluster health, these commands provide a quick overview.</p><pre>alias k=&#39;kubectl get all -A&#39;<br>alias kgp=&#39;kubectl get pods -A -o wide&#39;<br>alias kgns=&#39;kubectl get namespaces&#39;<br>alias kgs=&#39;kubectl get storageclass&#39;</pre><h3>Examples</h3><p>View everything across namespaces:</p><pre>k</pre><p>List all pods with node information:</p><pre>kgp</pre><p>Check available namespaces:</p><pre>kgns</pre><p>These aliases are often the first commands executed during cluster inspections.</p><h3>Pod Management Shortcuts</h3><p>Most Kubernetes work revolves around pods.</p><p>These aliases simplify common pod operations:</p><pre>alias kdp=&#39;kubectl describe pod&#39;<br>alias klog=&#39;kubectl logs -f&#39;<br>alias kexec=&#39;kubectl exec -it&#39;<br>alias kenv=&#39;kubectl exec -it -- env | sort&#39;<br>alias kpf=&#39;kubectl port-forward&#39;</pre><h3>Describe a Pod</h3><p>Instead of:</p><pre>kubectl describe pod nginx-7d9c8f9f5-xlm2z</pre><p>Use:</p><pre>kdp nginx-7d9c8f9f5-xlm2z</pre><h3>Stream Logs</h3><pre>klog my-app-pod</pre><p>This is one of the most frequently used commands during debugging.</p><h3>Execute Inside a Container</h3><pre>kexec my-pod -- bash</pre><p>Perfect for inspecting running containers.</p><h3>Port Forward</h3><pre>kpf pod/my-pod 8080:80</pre><p>Quickly access services locally without exposing them externally.</p><h3>Helm Productivity Shortcuts</h3><p>If you’re managing Kubernetes applications with Helm, these aliases are invaluable.</p><pre>alias hls=&#39;helm list -A&#39;<br>alias hi=&#39;helm install&#39;<br>alias hup=&#39;helm upgrade&#39;<br>alias hun=&#39;helm uninstall&#39;<br>alias hsr=&#39;helm search repo&#39;</pre><h3>Examples</h3><p>List Helm releases:</p><pre>hls</pre><p>Upgrade a release:</p><pre>hup my-app ./chart</pre><p>Search repositories:</p><pre>hsr nginx</pre><p>These aliases make Helm operations significantly faster during deployments.</p><h3>Troubleshooting Like an SRE</h3><p>When something breaks, these commands become your best friends.</p><pre>alias ktop=&#39;kubectl top pods -A&#39;<br>alias knode=&#39;kubectl get nodes -o wide&#39;<br>alias kdesc=&#39;kubectl describe&#39;<br>alias kevent=&#39;kubectl get events --sort-by=.metadata.creationTimestamp&#39;</pre><h3>The Most Valuable Alias: kevent</h3><p>Many engineers jump straight to dashboards when troubleshooting.</p><p>However, Kubernetes events often reveal the root cause immediately.</p><pre>kevent</pre><p>Common issues visible through events:</p><ul><li>Failed image pulls</li><li>Scheduling problems</li><li>Insufficient resources</li><li>Node failures</li><li>CrashLoopBackOff errors</li><li>Persistent Volume issues</li></ul><p>In many incidents, events provide the first clue before metrics and dashboards do.</p><h3>Add These Aliases Permanently</h3><p>For Zsh users:</p><pre>nano ~/.zshrc</pre><p>For Bash users:</p><pre>nano ~/.bashrc</pre><p>Paste your aliases and reload the shell:</p><pre>source ~/.zshrc</pre><p>or</p><pre>source ~/.bashrc</pre><p>The aliases will now be available every time you open a terminal.</p><h3>Bonus: Create a kubectl Shortcut</h3><p>Many engineers also add:</p><pre>alias kubectl=&#39;kubecolor&#39;</pre><p>or</p><pre>alias kc=&#39;kubectl&#39;</pre><p>This makes all Kubernetes commands even shorter.</p><p>Example:</p><pre>kc get pods</pre><p>instead of:</p><pre>kubectl get pods</pre><h3>Final Thoughts</h3><p>Productivity isn’t about working harder.</p><p>It’s about removing friction from repetitive tasks.</p><p>Kubernetes engineers spend countless hours interacting with clusters, pods, namespaces, and Helm releases. A few well-designed aliases can eliminate thousands of unnecessary keystrokes every month and significantly speed up troubleshooting during high-pressure incidents.</p><p>Set them up once.</p><p>Save time every day.</p><p>Your future self — and your incident response team — will thank you.</p><h3>Which Kubernetes alias do you use most often?</h3><p>Drop your favorite alias in the comments. There’s always a new shortcut worth stealing from another engineer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=296d498ac2e4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS SNS vs SQS Explained: What They Are, Why We Use Them, and When to Choose Each]]></title>
            <link>https://medium.com/@khushboo.sah067/aws-sns-vs-sqs-explained-what-they-are-why-we-use-them-and-when-to-choose-each-a2d4d082ef7d?source=rss-6ff205473ef0------2</link>
            <guid isPermaLink="false">https://medium.com/p/a2d4d082ef7d</guid>
            <dc:creator><![CDATA[Khushboo Sah]]></dc:creator>
            <pubDate>Tue, 16 Jun 2026 18:31:45 GMT</pubDate>
            <atom:updated>2026-06-16T18:31:45.895Z</atom:updated>
            <content:encoded><![CDATA[<p>When I first started working with AWS and microservices, I often saw terms like <strong>SNS</strong>, <strong>SQS</strong>, <strong>topics</strong>, <strong>subscriptions</strong>, and <strong>queues</strong>. At first, they seemed confusing because both services are used for messaging.</p><p>However, once I understood the problem they solve, everything became much clearer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m_T9ysLnMc30UetdjmPuIg.avif" /></figure><p>In this article, we’ll explore:</p><ul><li>What Amazon SQS is</li><li>What Amazon SNS is</li><li>Why they are used in modern architectures</li><li>SNS vs SQS comparison</li><li>The popular SNS → SQS fanout pattern</li><li>Cost considerations</li><li>A real-world example from a production environment</li></ul><h3>The Problem: Tightly Coupled Services</h3><p>Imagine an e-commerce application where an order has been successfully placed.</p><p>Without any messaging service, the architecture might look like this:</p><pre>Order Service<br> ├── Email Service<br> ├── Billing Service<br> ├── Analytics Service<br> └── Audit Service</pre><p>Whenever an order is created, the Order Service must communicate directly with every dependent service.</p><p>This creates several problems:</p><ul><li>Tight coupling</li><li>Increased complexity</li><li>Difficult scaling</li><li>Single point of failure</li><li>Slower response times</li></ul><p>What if the Email Service is down?</p><p>Should the entire order creation process fail?</p><p>This is where messaging services become valuable.</p><h3>What is Amazon SQS?</h3><p>Amazon SQS (Simple Queue Service) is a fully managed message queue service.</p><p>Think of it as a waiting line at a bank.</p><p>A producer sends messages into a queue, and consumers process those messages whenever they are ready.</p><h3>How SQS Works</h3><pre>Producer<br>    ↓<br> SQS Queue<br>    ↓<br> Consumer</pre><p>Example:</p><pre>{<br>  &quot;orderId&quot;: &quot;12345&quot;,<br>  &quot;userId&quot;: &quot;67890&quot;,<br>  &quot;amount&quot;: 100<br>}</pre><p>The producer places this message into the queue.</p><p>The consumer retrieves and processes it.</p><h3>Benefits of SQS</h3><h3>1. Decoupling</h3><p>The producer doesn’t need to know who processes the message.</p><pre>Application<br>     ↓<br>   Queue<br>     ↓<br> Worker</pre><p>Both services can evolve independently.</p><h3>2. Reliability</h3><p>Messages remain in the queue until processed successfully.</p><p>If a consumer crashes:</p><pre>Consumer Down<br>     ↓<br>Message Stays in Queue</pre><p>No data is lost.</p><h3>3. Scalability</h3><p>If message volume increases dramatically:</p><pre>Queue<br> ├── Worker 1<br> ├── Worker 2<br> ├── Worker 3<br> └── Worker 4</pre><p>Additional consumers can be added easily.</p><h3>What is Amazon SNS?</h3><p>Amazon SNS (Simple Notification Service) is a publish-subscribe messaging service.</p><p>Instead of storing messages in a queue, SNS broadcasts messages to multiple subscribers.</p><p>Think of a YouTube channel.</p><pre>Creator Uploads Video<br>          ↓<br> All Subscribers Notified</pre><p>SNS follows the same principle.</p><h3>How SNS Works</h3><pre>Publisher<br>    ↓<br> SNS Topic<br>    ↓<br> ├── Subscriber A<br> ├── Subscriber B<br> └── Subscriber C</pre><p>A single published event can reach many systems simultaneously.</p><h3>SNS Components</h3><h3>Publisher</h3><p>The application sending the message.</p><p>Example:</p><pre>Order Service</pre><h3>Topic</h3><p>A communication channel.</p><p>Example:</p><pre>order-created</pre><h3>Subscribers</h3><p>Recipients of the message.</p><p>Examples:</p><ul><li>SQS Queues</li><li>Lambda Functions</li><li>HTTP Endpoints</li><li>Applications</li></ul><h3>SNS vs SQS</h3><p>FeatureSNSSQSService TypePublish/SubscribeQueueMessage StorageNoYesMessage DeliveryMultiple SubscribersUsually One ConsumerPurposeBroadcast EventsProcess WorkDecouplingYesYesScalabilityHighHigh</p><p>A simple way to remember:</p><p><strong>SNS broadcasts.</strong></p><p><strong>SQS buffers.</strong></p><h3>The SNS → SQS Fanout Pattern</h3><p>One of the most common production architectures combines both services.</p><pre>Application<br>      ↓<br>   SNS Topic<br>      ↓<br> ┌──────────┬──────────┬──────────┐<br> │          │          │<br>SQS A     SQS B     SQS C<br> │          │          │<br>Email    Billing   Analytics<br>Service  Service   Service</pre><p>Here’s what happens:</p><ol><li>Application publishes one event.</li><li>SNS broadcasts it.</li><li>Each SQS queue receives its own copy.</li><li>Each service processes independently.</li></ol><p>Benefits:</p><ul><li>Loose coupling</li><li>Independent retries</li><li>Better fault tolerance</li><li>Easier scaling</li></ul><p>This pattern is widely used in microservices environments.</p><h3>Real-World Example</h3><p>Consider a user account management system.</p><p>When a user profile is locked, several actions may be required:</p><ul><li>Close active sessions</li><li>Send security notifications</li><li>Update audit records</li><li>Trigger compliance checks</li></ul><p>Instead of directly calling every service:</p><pre>User Management Service<br>          ↓<br>  SNS Topic<br>  ums-lock-user-profile<br>          ↓<br> auth-close-user-sessions Queue</pre><p>When a profile lock event occurs:</p><pre>{<br>  &quot;userId&quot;: &quot;123&quot;,<br>  &quot;action&quot;: &quot;lock-profile&quot;<br>}</pre><p>The event is published once.</p><p>Subscribers receive and process it independently.</p><p>This keeps the architecture flexible and maintainable.</p><h3>Does SNS Cost Money?</h3><p>Yes.</p><p>SNS pricing is based on:</p><ul><li>Published messages</li><li>Notification deliveries</li><li>Data transfer</li></ul><p>For example:</p><pre>Application<br>     ↓<br>SNS Topic<br>     ↓<br>Queue A<br>Queue B<br>Queue C</pre><p>One published message results in:</p><ul><li>One SNS publish request</li><li>Three SNS deliveries</li></ul><p>However, for most business applications, SNS costs are relatively small compared to services such as:</p><ul><li>Amazon EC2</li><li>Amazon EKS</li><li>Amazon RDS</li><li>NAT Gateway</li></ul><p>The architectural benefits often far outweigh the messaging costs.</p><h3>When Should You Use SQS?</h3><p>Use SQS when:</p><ul><li>Work needs to be processed asynchronously</li><li>Reliability is important</li><li>Consumers may be unavailable</li><li>You need buffering and retries</li></ul><p>Examples:</p><ul><li>Order processing</li><li>Image processing</li><li>Background jobs</li><li>Data ingestion pipelines</li></ul><h3>When Should You Use SNS?</h3><p>Use SNS when:</p><ul><li>Multiple systems need the same event</li><li>You need event broadcasting</li><li>Services should remain loosely coupled</li></ul><p>Examples:</p><ul><li>User registration events</li><li>Order creation events</li><li>Security notifications</li><li>System-wide alerts</li></ul><h3>Final Thoughts</h3><p>Amazon SNS and Amazon SQS solve different but complementary problems.</p><ul><li>SNS is used to broadcast events.</li><li>SQS is used to reliably process messages.</li><li>Together, they form one of the most powerful messaging patterns in AWS.</li></ul><p>If you’re building microservices, event-driven applications, or scalable cloud-native systems, understanding SNS and SQS is essential. The SNS → SQS fanout architecture is widely used in production environments because it provides reliability, scalability, and loose coupling while keeping systems easy to maintain.</p><p>The next time you see an SNS topic connected to multiple SQS queues, you’ll know exactly why that design was chosen.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a2d4d082ef7d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Centralized Alert Monitoring Dashboard with Grafana Loki]]></title>
            <link>https://medium.com/@khushboo.sah067/building-a-centralized-alert-monitoring-dashboard-with-grafana-loki-a22a5a8dbaa6?source=rss-6ff205473ef0------2</link>
            <guid isPermaLink="false">https://medium.com/p/a22a5a8dbaa6</guid>
            <dc:creator><![CDATA[Khushboo Sah]]></dc:creator>
            <pubDate>Tue, 16 Jun 2026 12:44:22 GMT</pubDate>
            <atom:updated>2026-06-16T12:44:22.055Z</atom:updated>
            <content:encoded><![CDATA[<p>In a recent project at my company, I was tasked with improving the way we monitored and tracked alerts across multiple environments. Our infrastructure generated a large number of alerts every day, and it became increasingly difficult to gain a clear overview of their status.</p><p>The goal was simple: create a dashboard that would allow teams to quickly understand how many alerts were being generated, how many were still pending, how many had fired, and how alerts were distributed across PCI and non-PCI environments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CxPkMg4JogIC4rL5jc9CQA.png" /></figure><h3>The Challenge</h3><p>Initially, I relied on the Prometheus and Alertmanager user interfaces to review alerts.</p><p>While this approach worked for basic monitoring, it had several limitations:</p><ul><li>Alerts were spread across different views.</li><li>It was difficult to get a consolidated picture of alert status.</li><li>Tracking trends and counts required manual effort.</li><li>Comparing alerts across PCI and non-PCI environments was time-consuming.</li><li>Teams had to navigate through multiple screens to find the information they needed.</li></ul><p>As the number of alerts increased, it became clear that we needed a more centralized and efficient solution.</p><h3>Existing Approach: Prometheus and Alertmanager UI</h3><p>Our monitoring stack was built around Prometheus for metrics collection and Alertmanager for alert handling.</p><p>Using Alertmanager, I could see active alerts and their current state. However, obtaining a high-level overview of:</p><ul><li>Total alerts</li><li>Pending alerts</li><li>Firing alerts</li><li>Environment-specific alerts</li></ul><p>required navigating through multiple interfaces and manually filtering data.</p><p>This approach was functional but not scalable.</p><h3>Introducing Grafana Loki</h3><p>To improve visibility, I decided to leverage Grafana Loki.</p><p>Loki is a log aggregation system designed to efficiently store and query logs while integrating seamlessly with Grafana.</p><p>Since alert information was already being logged, Loki provided an opportunity to centralize alert data and visualize it through Grafana dashboards.</p><h3>Solution Architecture</h3><p>The workflow looked like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*sD9qEEUK_2WkgCuIE0AHwA.png" /></figure><p>Instead of checking alerts individually through Alertmanager, I ingested alert-related logs into Loki and used LogQL queries to analyze alert states.</p><h3>Building the Dashboard</h3><p>The dashboard was designed to provide an instant overview of the alert landscape.</p><p>Key panels included:</p><h3>1. Total Alerts</h3><p>A panel displaying the total number of alerts received within a selected time range.</p><h3>2. Pending Alerts</h3><p>A panel showing alerts that were still in the pending state and had not yet met firing conditions.</p><h3>3. Firing Alerts</h3><p>A panel displaying currently active alerts requiring attention.</p><h3>4. PCI Environment Alerts</h3><p>A dedicated view for alerts originating from PCI-compliant infrastructure.</p><h3>5. Non-PCI Environment Alerts</h3><p>A separate panel for monitoring alerts from non-PCI environments.</p><h3>6. Alert Trends Over Time</h3><p>Graphs showing alert volume trends, helping identify recurring issues and peak activity periods.</p><h3>Benefits of Using Loki</h3><p>After implementing the solution, several improvements became immediately noticeable:</p><h3>Centralized Visibility</h3><p>All alert information became accessible from a single Grafana dashboard.</p><h3>Faster Incident Response</h3><p>Engineers could quickly identify active issues without switching between tools.</p><h3>Improved Operational Efficiency</h3><p>The dashboard reduced manual effort and simplified daily monitoring activities.</p><h3>Better Environment Segmentation</h3><p>PCI and non-PCI alerts could be monitored independently, making compliance-related monitoring much easier.</p><h3>Historical Analysis</h3><p>Loki enabled historical querying of alert logs, allowing teams to investigate trends and recurring incidents.</p><h3>Lessons Learned</h3><p>This project reinforced an important monitoring principle:</p><blockquote><em>Visibility is just as important as alert generation.</em></blockquote><p>Having alerts is valuable, but if teams cannot quickly understand their status and impact, response times suffer.</p><p>By combining Prometheus, Alertmanager, Grafana, and Loki, we transformed fragmented alert monitoring into a centralized, data-driven dashboard that improved both operational awareness and incident response.</p><h3>Conclusion</h3><p>Monitoring systems generate large amounts of alert data, but the real value comes from making that data actionable.</p><p>By moving from individual Alertmanager views to a centralized Grafana Loki dashboard, we gained:</p><ul><li>A single source of truth for alerts</li><li>Real-time visibility into alert status</li><li>Better PCI and non-PCI environment monitoring</li><li>Faster troubleshooting and response times</li></ul><p>This experience demonstrated how log aggregation and visualization tools like Grafana Loki can significantly enhance observability and operational efficiency in modern cloud-native environments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a22a5a8dbaa6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ChatGPT Didn’t Replace My DevOps Work — It Exposed My Weak Workflow]]></title>
            <link>https://medium.com/@khushboo.sah067/chatgpt-didnt-replace-my-devops-work-it-exposed-my-weak-workflow-2f43c10306cc?source=rss-6ff205473ef0------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f43c10306cc</guid>
            <dc:creator><![CDATA[Khushboo Sah]]></dc:creator>
            <pubDate>Fri, 08 May 2026 06:18:51 GMT</pubDate>
            <atom:updated>2026-05-08T06:18:51.290Z</atom:updated>
            <content:encoded><![CDATA[<p>A few months ago, I thought I had figured out the perfect engineering shortcut.</p><p>Whenever I got stuck in DevOps work, I opened ChatGPT.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RePJKFGIeTBAd53MybEurA.webp" /></figure><p>Kubernetes issue? Ask ChatGPT.<br>Terraform confusion? Ask ChatGPT.<br>CI pipeline failing ? Definitely ask ChatGPT.</p><p>At first, it felt like having a senior engineer sitting beside me all day.</p><p>Fast answers.<br>Instant YAML.<br>Ready-to-copy scripts.<br>Faster debugging.</p><p>I became heavily dependent on it.</p><p>But after enough production mistakes, broken configs, and hours wasted fixing “AI-generated solutions,” I realized something uncomfortable:</p><p>Most of my problems weren’t caused by AI.</p><p>They were caused by the way I was using it.</p><p>And once I changed that, everything changed.</p><h3>I Was Treating AI Like Google</h3><p>This was probably my biggest mistake.</p><p>I used prompts like:</p><blockquote><em>“Fix this deployment.”<br>“Optimize this container.”<br>“Write Terraform for this.”</em></blockquote><p>Very short.<br>Very lazy.<br>Almost zero context.</p><p>And because of that, the outputs looked technically correct… but rarely matched my actual infrastructure.</p><p>Sometimes it generated Azure examples while I worked on AWS.<br>Sometimes it assumed Jenkins when my stack used GitHub Actions.<br>Sometimes it added tools we never even used internally.</p><p>I learned something important:</p><p>AI fills gaps with assumptions.</p><p>If your prompt is vague, the response becomes a guessing game.</p><p>Now I write prompts the same way I’d explain tasks to a real teammate.</p><p>The quality difference is massive.</p><h3>The Worst Outputs Came From “One-Shot” Prompts</h3><p>I used to dump entire projects into a single request.</p><p>Something like:</p><blockquote><em>“Create CI/CD pipeline, Docker setup, monitoring, rollback strategy, alerts, and Kubernetes deployment.”</em></blockquote><p>And then I’d wonder why the result felt chaotic.</p><p>The problem wasn’t intelligence.</p><p>The problem was overload.</p><p>Now I work in layers.</p><p>First:</p><ul><li>pipeline</li></ul><p>Then:</p><ul><li>container optimization</li></ul><p>Then:</p><ul><li>deployment strategy</li></ul><p>Then:</p><ul><li>monitoring</li></ul><p>Breaking work into smaller conversations gave me cleaner architecture decisions and fewer hidden mistakes.</p><p>Ironically, slower prompting made delivery faster.</p><h3>One AI-Generated YAML File Nearly Broke Our Staging Environment</h3><p>This incident changed my workflow permanently.</p><p>I copied a generated Kubernetes manifest directly into staging because it “looked correct.”</p><p>It wasn’t.</p><p>Selectors were mismatched.<br>Pods deployed incorrectly.<br>Traffic routing failed.</p><p>The rollback took longer than the original task itself.</p><p>That day taught me a rule I follow strictly now:</p><p>Never deploy generated infrastructure blindly.</p><p>I don’t care how confident the output sounds.</p><p>Everything gets validated.</p><p>Always.</p><p>Now my process includes:</p><ul><li>dry runs</li><li>linting</li><li>schema validation</li><li>isolated staging tests</li></ul><p>AI accelerates creation.</p><p>It does not replace verification.</p><p>That distinction matters a lot in DevOps.</p><h3>“Optimize This” Is Actually a Terrible Prompt</h3><p>I used to think broad prompts encouraged creativity.</p><p>Instead, they created unpredictable infrastructure.</p><p>One Docker optimization removed dependencies my application needed.<br>Another removed health checks completely.<br>One even reduced image size by breaking runtime behavior.</p><p>Technically optimized.<br>Operationally useless.</p><p>That’s when I realized AI optimizes for the request you wrote — not the intention inside your head.</p><p>Now I define boundaries clearly.</p><p>Instead of:</p><blockquote><em>“Optimize this container”</em></blockquote><p>I ask for:</p><ul><li>multi-stage builds</li><li>maximum image size</li><li>required dependencies</li><li>health probes</li><li>startup expectations</li><li>memory constraints</li></ul><p>The outputs became dramatically more stable after that.</p><p>Specificity is underrated engineering.</p><h3>Security Was My Biggest Wake-Up Call</h3><p>One of the earliest IAM policies ChatGPT generated for me included wildcard permissions everywhere.</p><p>Full access.<br>Broad resources.<br>Minimal restrictions.</p><p>Convenient?<br>Yes.</p><p>Safe?<br>Absolutely not.</p><p>That moment genuinely scared me because I realized how easy it would be for engineers to deploy insecure configurations just because the generated output “looked professional.”</p><p>Now security constraints are part of every infrastructure prompt I write.</p><p>Least privilege.<br>Explicit resources.<br>No wildcard access.<br>Secrets handled separately.</p><p>The AI only respects the boundaries you define.</p><p>If you don’t define them, it chooses convenience.</p><p>And convenience is dangerous in production systems.</p><h3>The Real Lesson</h3><p>At some point, I stopped seeing ChatGPT as a magic tool.</p><p>And I started seeing it as an accelerator.</p><p>That mindset shift improved everything.</p><p>Because accelerators amplify both:</p><ul><li>good workflows</li><li>bad workflows</li></ul><p>If your engineering process is weak, AI makes mistakes faster.</p><p>If your process is solid, AI becomes incredibly powerful.</p><p>That’s the part nobody talks about enough.</p><h3>Where I Am Now</h3><p>Today, I still use ChatGPT heavily in DevOps work.</p><p>Probably every single day.</p><p>But now:</p><ul><li>I give detailed context</li><li>I isolate tasks</li><li>I validate outputs</li><li>I define security requirements</li><li>I review everything before deployment</li></ul><p>And honestly?</p><p>The quality of my work improved more after changing my process than after learning new tools.</p><p>That surprised me the most.</p><p>Sometimes productivity isn’t about adding smarter technology.</p><p>Sometimes it’s about removing careless habits.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f43c10306cc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Should You Run Your Own LLM? A Practical DevOps Perspective]]></title>
            <link>https://medium.com/@khushboo.sah067/should-you-run-your-own-llm-a-practical-devops-perspective-f28a9f811536?source=rss-6ff205473ef0------2</link>
            <guid isPermaLink="false">https://medium.com/p/f28a9f811536</guid>
            <dc:creator><![CDATA[Khushboo Sah]]></dc:creator>
            <pubDate>Mon, 06 Apr 2026 14:21:55 GMT</pubDate>
            <atom:updated>2026-04-06T14:21:55.554Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Short answer:</strong> it depends.</p><p>Self-hosting an LLM sounds powerful — full control, no API limits, complete privacy. But once you step into it, you realize it’s not just about running a model… it’s about running an entire infrastructure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_6V4tirXOSInclXC4nhi6Q.jpeg" /></figure><p>Let’s break this down in a way that actually helps you decide</p><h3>When Self-Hosting Actually Makes Sense</h3><p>Not everyone needs to self-host — and that’s the truth.</p><p>It starts making sense only when:</p><ul><li>You’re handling <strong>high-volume workloads</strong> (millions of tokens daily)</li><li>You need <strong>low latency</strong> (real-time responses)</li><li>Your data <strong>can’t leave your environment</strong> (compliance/security reasons)</li></ul><p>For example:</p><ul><li>Internal enterprise tools</li><li>Financial or healthcare systems</li><li>AI features deeply embedded in products</li></ul><p>If you’re just experimenting or building side projects, cloud APIs are usually cheaper and faster to get started with.</p><h3>What “Self-Hosting” Really Means</h3><p>A lot of people think:</p><blockquote><em>“I’ll just download a model and run it locally.”</em></blockquote><p>Reality is very different.</p><p>When you self-host, you are responsible for:</p><ul><li>GPU setup and drivers (hello CUDA issues )</li><li>Scaling when traffic increases</li><li>Monitoring performance and failures</li><li>Securing APIs and endpoints</li><li>Updating models and dependencies</li></ul><p>In simple terms:<br>You’re not just using AI — you’re operating it.</p><h3>Choosing the Right Hardware</h3><p>Before picking a model, you need to think about infrastructure.</p><h3>Small Models (~7B)</h3><ul><li>Can run on a single GPU (like RTX 3090/4090)</li><li>Good for testing and low traffic</li><li>Even CPU-based setups possible (with optimizations)</li></ul><h3>Mid-Size Models (~13B)</h3><ul><li>Require stronger GPUs or multi-GPU setups</li><li>Better performance but higher cost</li></ul><h3>Large Models (30B+)</h3><ul><li>Need serious infrastructure (multi-GPU clusters)</li><li>High VRAM, fast SSDs, and strong networking</li></ul><p>Important:<br>RAM and disk speed matter more than people expect. Slow storage = slow inference.</p><h3>Software Stack (How Things Fit Together)</h3><p>Running an LLM isn’t one tool — it’s a stack.</p><p>Typical setup looks like this:</p><ul><li><strong>Model layer</strong> → Mistral, LLaMA, Mixtral, etc.</li><li><strong>Inference engine</strong> → vLLM, llama.cpp, or similar</li><li><strong>API layer</strong> → FastAPI / Flask</li><li><strong>Containerization</strong> → Docker</li><li><strong>Orchestration</strong> → Kubernetes / simple VM setups</li></ul><p>Many teams expose their local LLM as an <strong>OpenAI-compatible API</strong>, making it easy to switch between cloud and local.</p><h3>A Simple Workflow</h3><p>Here’s how most real setups look:</p><ol><li>Provision infrastructure (cloud GPU or dedicated server)</li><li>Install GPU drivers + dependencies</li><li>Download model weights</li><li>Start inference server</li><li>Test locally (curl / Postman)</li><li>Add API layer + authentication</li><li>Monitor performance and logs</li></ol><p>Sounds simple on paper… but each step can break in interesting ways</p><h3>Cost vs Effort Trade-Off</h3><p>Self-hosting doesn’t remove costs — it shifts them.</p><h3>Benefits:</h3><ul><li>No per-request API cost</li><li>Full control over data</li><li>No rate limits</li><li>Custom fine-tuning flexibility</li></ul><h3>Challenges:</h3><ul><li>Infrastructure expenses</li><li>Engineering time</li><li>Maintenance overhead</li><li>Debugging complexity</li></ul><p>You trade <strong>money for control</strong>, and <strong>simplicity for flexibility</strong>.</p><h3>Who Should (and Shouldn’t) Do This?</h3><h3>Good fit:</h3><ul><li>Teams with strong DevOps skills</li><li>High and predictable usage</li><li>Strict privacy requirements</li></ul><h3>Not ideal for:</h3><ul><li>Beginners</li><li>Small projects</li><li>Teams needing fast delivery</li><li>Low usage workloads</li></ul><h3>Final Thought</h3><p>A good strategy is:</p><p>Start with APIs → Validate your use case → Then consider self-hosting</p><p>Because jumping straight into infrastructure without understanding your needs often leads to wasted time and effort.</p><h3>The Real DevOps Lesson</h3><p>Self-hosting an LLM is not just about AI.</p><p>It’s about:</p><ul><li>System design</li><li>Scalability</li><li>Reliability</li><li>Trade-offs</li></ul><p>And most importantly:</p><p><em>Owning everything that can go wrong.</em></p><h3>Closing Line</h3><p>If you enjoy debugging GPU issues at midnight and tuning performance like a game — self-hosting might be for you.</p><p>If not, managed services exist for a reason :)</p><p>#DevOps #LLM #AIInfrastructure #SelfHosting #CloudComputing #MLOps #TechWriting</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f28a9f811536" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kubernetes RBAC Explained Through a Story]]></title>
            <link>https://medium.com/@khushboo.sah067/kubernetes-rbac-explained-through-a-story-83d6195f5242?source=rss-6ff205473ef0------2</link>
            <guid isPermaLink="false">https://medium.com/p/83d6195f5242</guid>
            <dc:creator><![CDATA[Khushboo Sah]]></dc:creator>
            <pubDate>Sat, 10 Jan 2026 18:09:22 GMT</pubDate>
            <atom:updated>2026-01-10T18:09:22.059Z</atom:updated>
            <content:encoded><![CDATA[<h3>Understanding Role-Based Access Control the Easy Way</h3><p>When you start working with Kubernetes, one term you hear again and again is RBAC — Role-Based Access Control.<br>At first, it sounds complex and security-heavy. But once you understand the idea behind it, RBAC becomes very logical.</p><p>Let’s understand Kubernetes RBAC through a simple story.</p><h3>The Kubernetes Kingdom</h3><p>Imagine Kubernetes as a large kingdom.<br>This kingdom has a control room — the Kubernetes API Server.</p><p>Everything happens through this control room:</p><ul><li>Pods are created</li><li>Services are updated</li><li>Nodes are managed</li></ul><p>Now imagine if everyone in the kingdom could freely enter the control room.<br>Chaos would be inevitable.</p><p>This is exactly why Kubernetes needs RBAC.</p><h3>What is RBAC?</h3><p>RBAC (Role-Based Access Control) defines:</p><ul><li>Who can access the Kubernetes API</li><li>What actions are they allowed to perform</li></ul><p>RBAC ensures that users and services get only the permissions they need — nothing more.</p><h3>Different People, Different Responsibilities</h3><p>In the Kubernetes kingdom, there are different people with different responsibilities:</p><ul><li>Developers want to view pods</li><li>Testers want to check logs</li><li>Administrators need full control</li></ul><p>Giving everyone administrator access would be dangerous.<br>So Kubernetes introduces roles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wYhHE-_LT1TLgHxyGq57vg.png" /></figure><h3>Role — The Job Description</h3><p>A Role is like a job description:</p><ul><li>It defines which resources can be accessed</li><li>It defines which actions can be performed</li></ul><p>Example:</p><ul><li>A developer role may allow get, list, and watch access on pods</li><li>A tester role may allow read-only access to logs</li></ul><p>Roles are usually namespace-scoped, meaning they apply only within a specific namespace.</p><h3>RoleBinding — Assigning the Role</h3><p>Defining a role is not enough.<br>The role must be assigned to a user, group, or service account.</p><p>This assignment is done using a RoleBinding.</p><p>RoleBinding connects:</p><ul><li>A subject (user, group, or service account)</li><li>A role</li></ul><p>Once bound, the permissions become effective.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PvL5aRShXeu1aQMBC5MQyg.png" /></figure><h3>ClusterRole — Permissions Across the Cluster</h3><p>Some permissions are required across the entire Kubernetes cluster:</p><ul><li>Managing nodes</li><li>Managing namespaces</li><li>Viewing cluster-wide resources</li></ul><p>For such use cases, Kubernetes provides ClusterRole.</p><p>ClusterRoles are cluster-wide and should be used carefully.</p><h3>ClusterRoleBinding — Cluster-Wide Assignment</h3><p>ClusterRoleBinding assigns a ClusterRole to a user, group, or service account.</p><p>These bindings grant powerful permissions, so following the principle of least privilege is essential.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ut6xSQ2ZXWGVtgovckMSMA.png" /></figure><h3>Why RBAC Is Important</h3><p>RBAC helps Kubernetes:</p><ul><li>Prevent unauthorized access</li><li>Reduce accidental or malicious changes</li><li>Protect the Kubernetes control plane</li><li>Limit the blast radius of failures</li></ul><p>In production environments, RBAC is mandatory.</p><h3>Key Takeaways</h3><ul><li>RBAC controls access to the Kubernetes API</li><li>Roles define permissions</li><li>Bindings assign permissions</li><li>ClusterRoles apply across the cluster</li><li>Always follow the principle of least privilege</li></ul><h3>Final Thought</h3><p>RBAC is not just a security feature.<br>It is a way to enforce responsibility and control in Kubernetes environments.</p><p>Just like in real-world systems, controlled access is the foundation of stability and security.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=83d6195f5242" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>