<?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 Yogesh VK on Medium]]></title>
        <description><![CDATA[Stories by Yogesh VK on Medium]]></description>
        <link>https://medium.com/@yogesh.vk?source=rss-c06b57ad8ac6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*C-QVL05JedM9dbJEMZvyKQ.png</url>
            <title>Stories by Yogesh VK on Medium</title>
            <link>https://medium.com/@yogesh.vk?source=rss-c06b57ad8ac6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 13:40:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yogesh.vk/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[AI + Platform Engineering: Why System Context Beats Bigger Models]]></title>
            <link>https://medium.com/@yogesh.vk/ai-platform-engineering-why-system-context-beats-bigger-models-e9882de033da?source=rss-c06b57ad8ac6------2</link>
            <guid isPermaLink="false">https://medium.com/p/e9882de033da</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <dc:creator><![CDATA[Yogesh VK]]></dc:creator>
            <pubDate>Sat, 28 Nov 2026 04:31:03 GMT</pubDate>
            <atom:updated>2026-11-28T04:31:03.254Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BN7bVB-QU5TL-A0F0slDhw.png" /><figcaption>What matters more.</figcaption></figure><p>There is a pattern I keep seeing whenever engineering organizations try to roll out AI across their infrastructure workflows. Someone upgrades the team to the latest frontier reasoning model, wires it up to a repository, and asks it to generate a Terraform module or debug a broken Kubernetes deployment. When the output misses an internal networking rule or breaks a downstream dependency, the default assumption is that the model just isn’t smart enough yet.</p><p>So teams wait for the next model release, hoping a larger context window or better benchmark score will solve the problem.</p><p>What interests me here is that the bottleneck rarely has anything to do with raw model intelligence. Even the most capable model on the market will confidently generate dangerous infrastructure changes if it is blind to how your actual platform operates. In platform engineering, a smaller model fed with accurate system context will consistently outperform a massive model guessing in the dark.</p><h3>When a Smarter Model Still Gets It Wrong</h3><p>Imagine asking an AI assistant to help onboard a new internal microservice onto an existing AWS EKS cluster. You paste in the service’s Dockerfile and ask for a production-ready Helm values file and a Terraform snippet for its database access.</p><p>A frontier model will give you clean, idiomatic code in seconds. It will configure resource requests, set up liveness probes, and generate an IAM policy that looks completely reasonable to anyone reviewing the pull request in isolation.</p><p>The trouble starts when that configuration meets the reality of a shared platform. Suppose your platform team enforces a strict rule that all internal services must route outbound database traffic through a centralized proxy subnet, or that specific node groups are tainted for PCI workloads. Because none of that exists in the application repository, the model falls back on standard public documentation patterns.</p><p>If you apply that generated configuration without catching the mismatch, the deployment might even succeed at first, only to fail silently when traffic hits the network boundary:</p><pre>$ kubectl get pods -n payments-core<br>NAME                                READY   STATUS    RESTARTS   AGE<br>ledger-worker-6d8f9b7c4-k92lp       1/1     Running   0          3m14s<br><br>$ kubectl logs -n payments-core ledger-worker-6d8f9b7c4-k92lp<br>2026-11-24T04:12:08Z ERROR dial tcp 10.24.88.14:5432: i/o timeout<br>2026-11-24T04:12:13Z WARN  retrying database connection (attempt 4/10)</pre><p>Looking at that timeout, an engineer who doesn’t know the underlying network topology might spend an hour checking security groups or database credentials. In reality, the pod was scheduled onto a general-purpose node pool whose route table has no path to the isolated data tier. The AI wrote valid Kubernetes YAML, and it knew plenty about AWS networking in general, yet it failed completely because it lacked your specific architectural constraints.</p><h3>What We Actually Mean by System Context</h3><p>When platform teams talk about giving AI “context,” they often stop at indexing a few Git repositories or pasting a README.md file into a system prompt. That helps with syntax and folder structures, but code repositories only capture the static declaration of individual components. They rarely capture how those components behave together under load or why certain guardrails exist.</p><p>Real system context lives across the boundaries of your platform. It includes your network segmentation rules, shared ingress controller limits, approved Terraform module versions, and the unwritten operational history that every senior SRE carries in their head. It is knowing that a particular RDS instance hits connection limits during nightly batch jobs, or that a legacy service relies on specific DNS caching behavior that breaks if you change a CoreDNS setting.</p><p>Without that layer of truth, an LLM is just an advanced autocomplete engine operating on generic internet averages.</p><h3>Shifting From Prompt Engineering to Context Engineering</h3><p>I’ve realized that the real work for platform teams isn’t writing clever prompts for developers to copy and paste. It is building pipelines and interfaces that automatically inject live platform reality into the AI’s workspace before it ever generates a suggestion.</p><p>Instead of asking a model to guess how a service should be configured, a context-driven workflow gathers the surrounding state first. Before an AI agent or review script evaluates a change, it pulls the actual cluster constraints, active policy rules, and dependency maps.</p><p>Consider how different an automated review looks when the model is grounded in real environment metadata rather than just reading a static file. If a script pulls the target namespace’s resource quotas, active network policies, and node taints alongside the proposed manifest, the diagnostic output changes completely:</p><pre>$ platform-audit --manifest deployment.yaml --namespace payments-core<br>[INFO] Fetching live cluster constraints for namespace: payments-core...<br>[INFO] Loaded 3 NetworkPolicies, 1 ResourceQuota, 2 Kyverno ClusterPolicies<br>[WARN] Context Mismatch Detected:<br>  -&gt; Target namespace requires &#39;tier=restricted&#39; nodeSelector for data-tier access.<br>  -&gt; Proposed manifest omits nodeSelector; pods will schedule on default pool &#39;ng-general&#39;.<br>  -&gt; Result: Egress to 10.24.0.0/16 will be dropped by transit gateway firewall.</pre><p>Notice what happened there. We didn’t need a trillion-parameter model to figure out why the network would drop packets. A straightforward script gathered the local Kubernetes policies and network rules, handed that structured context to the model, and asked it to check for conflicts. The model’s job shifted from inventing architecture to verifying alignment against known facts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1l3ZfSvWOCgcROZgvQM0Uw.png" /><figcaption>Difference in the flow</figcaption></figure><h3>Why This Matters for Platform Teams</h3><p>As AI tools become standard across engineering organizations, platform teams face a quiet shift in responsibility. For the past decade, platform engineering has focused on building golden paths, self-service portals, and reusable Terraform modules for human developers.</p><p>Now, a huge percentage of the code hitting those golden paths is being drafted by AI assistants. If your platform’s rules, architectural boundaries, and operational constraints are locked away in tribal knowledge or scattered across outdated Confluence pages, AI tools will bypass your guardrails at scale. Developers will generate more configurations faster, and platform engineers will become full-time reviewers cleaning up subtle architectural drift.</p><p>The teams that succeed with AI won’t be the ones paying for the largest token limits or chasing every new model benchmark. They will be the ones treating their platform state, topology, and policies as structured, queryable context that any model can consume.</p><h3>The Takeaway</h3><p>A bigger model gives you better reasoning over general knowledge, while system context gives you accuracy over your actual environment. When you are responsible for keeping production systems reliable, general knowledge is never enough.</p><p><strong>Better models can write cleaner syntax, but only system context makes automation safe.</strong></p><p><em>Note: This article was written with the assistance of AI tools for structuring and drafting. The ideas, examples, and perspectives are based on real-world experience in DevOps and cloud engineering.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e9882de033da" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI + Kubernetes: The Difference Between Healthy Pods and Healthy Systems]]></title>
            <link>https://medium.com/@yogesh.vk/ai-kubernetes-the-difference-between-healthy-pods-and-healthy-systems-b3cce2433375?source=rss-c06b57ad8ac6------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3cce2433375</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[Yogesh VK]]></dc:creator>
            <pubDate>Fri, 30 Oct 2026 14:06:35 GMT</pubDate>
            <atom:updated>2026-10-30T14:06:35.477Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-VqJaWloZ1xlVgMNhVA1RA.png" /><figcaption>Humans vs AI in Kubernetes</figcaption></figure><p>A couple of weeks ago, a platform engineering lead showed me an AI-generated deployment script that had just gone through a green CI/CD run. Every check passed. When deployed to a staging environment, kubectl get pods returned a wall of green: Running status, zero restarts, 1/1 Ready.</p><p>By all standard metric definitions, the workload was healthy.</p><p>Yet, three hours later, a routine worker node auto-scaling event triggered a cascading outage across two dependent downstream services. The pods themselves never crashed, logged an error, or failed a readiness probe. In fact, as far as Kubernetes was concerned, every single container was operating perfectly.</p><p>This incident highlights a fundamental gap in how AI tools approach infrastructure: <strong>AI excels at configuring healthy pods, but it is entirely blind to healthy systems.</strong></p><h3>The Illusion of the Green Status</h3><p>When you ask an LLM to generate a Kubernetes manifest for a service, its primary objective is object-level validity. It ensures the container starts, the ports align, and the probes return a 200 OK.</p><p>Consider a typical AI-generated manifest for a high-throughput microservice:</p><pre>apiVersion: apps/v1<br>kind: Deployment<br>metadata:<br>  name: order-processor<br>  namespace: core-services<br>spec:<br>  replicas: 4<br>  selector:<br>    matchLabels:<br>      app: order-processor<br>  template:<br>    metadata:<br>      labels:<br>        app: order-processor<br>    spec:<br>      containers:<br>      - name: processor<br>        image: internal-registry.net/order-processor:v1.4.2<br>        resources:<br>          requests:<br>            cpu: &quot;250m&quot;<br>            memory: &quot;512Mi&quot;<br>          limits:<br>            cpu: &quot;1000m&quot;<br>            memory: &quot;1Gi&quot;<br>        readinessProbe:<br>          httpGet:<br>            path: /health<br>            port: 8080<br>          initialDelaySeconds: 10<br>          periodSeconds: 5</pre><p>If you apply this, Kubernetes will report success:</p><pre>$ kubectl get pods -n core-services -l app=order-processor<br>NAME                               READY   STATUS    RESTARTS   AGE<br>order-processor-754854589d-2b4kx   1/1     Running   0          4m12s<br>order-processor-754854589d-7n8l9   1/1     Running   0          4m12s<br>order-processor-754854589d-9x1z2   1/1     Running   0          4m12s<br>order-processor-754854589d-p5m8q   1/1     Running   0          4m12s</pre><p>To an automated pipeline or an inexperienced engineer, four healthy pods mean a healthy service. But pod status is a micro-level abstraction. It tells you if a container process is running; it tells you nothing about system dynamics.</p><h3>Where Pod Health and System Health Diverge</h3><p>Systems don’t fail because individual pods crash — Kubernetes is built to handle pod crashes automatically. Systems fail when valid pod behavior triggers unintended systemic feedback loops. Here are three ways AI-generated configurations create systemic instability while maintaining perfectly “healthy” pods:</p><h4>1. The Flapping Readiness Probe &amp; Cascading Overload</h4><p>In the manifest above, the readiness probe checks /health every 5 seconds. If the downstream database experiences transient latency, the application&#39;s response time slows down.</p><p>The readiness probe times out, and Kubernetes removes the pod from the Service endpoints. The pod is still Running, but it stops receiving traffic. Now, the remaining three pods take 100% of the load. They get overloaded, fail <em>their</em> readiness probes, and drop off the endpoint list one by one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*PN0L3RXbt_bXnPRPdV208Q.png" /></figure><h4>2. Uncoordinated Auto-Scaling Interlocking</h4><p>Imagine another service configured by AI with a Horizontal Pod Autoscaler (HPA) targeting 70% CPU utilization.</p><p>During a traffic burst, the HPA rapidly scales order-processor from 4 to 20 pods. Each new pod opens a connection pool to a shared PostgreSQL instance. The pods are healthy, green, and scaling as instructed. However, 20 pods spawning simultaneously exhaust the database&#39;s connection pool, starving a critical authentication service running in a different namespace. The pods are healthy but the system is paralyzed.</p><h4>3. Eviction Cascades Under Node Pressure</h4><p>Without explicit topologySpreadConstraints and priority classes, the Kubernetes scheduler might place three of those four pods onto a single node that happens to have free capacity. If that node experiences memory pressure, Kubelet begins evicting low-priority workloads. If the AI omitted a PodDisruptionBudget (PDB) or proper QoS classes (Guaranteed vs Burstable), 75% of your service capacity disappears in a single second. The remaining pod stays Running, but your availability SLA is broken.</p><h3>Local Validation vs. Systemic Architecture</h3><p>The fundamental mistake is assuming that if every manifest in a repository is syntactically valid and linted, the cluster will be stable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*u2H3n5yN-TylD45cwFBDFw.png" /></figure><p>AI generates workloads in isolation. It treats a Deployment as a standalone unit of execution. But engineers don’t manage workloads; they manage ecosystem dependencies:</p><ul><li><strong>AI sees:</strong> A container running a process with open ports.</li><li><strong>Engineers see:</strong> Network topologies, database connection limits, shared ingress controllers, and failure domain boundaries.</li></ul><h3>A Safer Pattern: Shifting AI to System Boundary Review</h3><p>We shouldn’t stop using AI in Kubernetes workflows; we should change its assignment. Stop using AI as an unguided author of workloads, and start using it to analyze <strong>cross-resource interactions</strong>.</p><h4>1. Architectural Blast-Radius Analysis</h4><p>Instead of asking AI to write a Deployment, feed it your proposed Deployment <em>alongside</em> your cluster’s existing ingress limits, database capacity, and node topology. Ask:</p><blockquote>“Given a maximum PostgreSQL connection limit of 200, what happens to system stability if this HPA scales to maxReplicas: 25?”</blockquote><h4>2. Generating Chaos Engineering Tests</h4><p>Use AI to design failure scenarios based on your manifests. Ask it to generate ChaosMesh or LitmusChaos custom resources that test what happens when readiness probes fail under load or when cross-AZ latency spikes.</p><h4>3. Admission Control Policy Generation</h4><p>Use AI to write site-wide policies (OPA Gatekeeper or Kyverno) that automatically enforce system-level guardrails. Ensure no single Deployment can be applied without anti-affinity rules, connection pool bounds, and disruption budgets.</p><h3>The Takeaway</h3><p>Kubernetes was designed to automate the lifecycle of containers. It was never designed to automatically understand the business logic connecting those containers. An LLM can give you 100% green status checks across all your namespaces. But a green pod is simply an execution unit waiting for traffic.</p><p><strong>AI builds healthy pods; engineers architect healthy systems.</strong></p><p>How does your team evaluate system-level dependencies before deploying AI-assisted changes? Are you catching these boundary issues in staging or production? Share your approach below.</p><p><em>Note: This article was written with the assistance of AI tools for structuring and drafting. The ideas, examples, and perspectives are based on real-world experience in DevOps and cloud engineering.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3cce2433375" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI and the Illusion of “Safe” Automation in Kubernetes]]></title>
            <link>https://medium.com/@yogesh.vk/ai-and-the-illusion-of-safe-automation-in-kubernetes-dd0095df4e9d?source=rss-c06b57ad8ac6------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd0095df4e9d</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <dc:creator><![CDATA[Yogesh VK]]></dc:creator>
            <pubDate>Sat, 17 Oct 2026 04:31:02 GMT</pubDate>
            <atom:updated>2026-10-17T04:31:02.743Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_JghXgFgG-5M1Gw49ZBfXA.jpeg" /><figcaption>AI + Humans for safe workflow</figcaption></figure><p>A few days ago, I was looking at a Kubernetes Deployment manifest generated by an LLM. It was syntactically flawless. Indentation was spot-on, standard API versions were used, and labels were neatly mapped. If you ran kubectl apply --dry-run=client -f deployment.yaml, the API server wouldn’t emit a single warning.</p><p>To a junior engineer or a platform team looking to accelerate delivery, this output looks like a victory. The code is clean, valid, and immediately actionable.</p><p>Yet, applying that manifest to a live cluster would have silently degraded a production service during the next routine node drain.</p><p>This is the central paradox of AI-driven automation in Kubernetes: <strong>AI excels at producing syntactically valid manifests, but it is completely blind to operational safety.</strong> Because Kubernetes declarative model accepts whatever valid state you define, a “successful” deployment can easily disguise a ticking operational disaster.</p><h3>The Green Checkmark Trap</h3><p>Imagine asking an AI assistant to generate a production-ready manifest for a microservice:</p><blockquote>“Generate a Kubernetes Deployment for a Python API with 3 replicas, resource limits, and a readiness probe.”</blockquote><p>The model responds instantly with something like this:</p><pre>apiVersion: apps/v1<br>kind: Deployment<br>metadata:<br>  name: payment-api<br>  namespace: payment<br>spec:<br>  replicas: 3<br>  selector:<br>    matchLabels:<br>      app: payment-api<br>  template:<br>    metadata:<br>      labels:<br>        app: payment-api<br>    spec:<br>      containers:<br>      - name: api<br>        image: internal-registry.net/payment-api:v1.2.3<br>        resources:<br>          requests:<br>            cpu: &quot;100m&quot;<br>            memory: &quot;128Mi&quot;<br>          limits:<br>            cpu: &quot;500m&quot;<br>            memory: &quot;256Mi&quot;<br>        readinessProbe:<br>          httpGet:<br>            path: /healthz<br>            port: 8080<br>          initialDelaySeconds: 5<br>          periodSeconds: 10</pre><p>At first glance, it checks every box. It sets resource bounds, handles health checks, and guarantees high availability across three pods. It passes CI/CD linting, passes client-side validation, and applies without error.</p><p>The illusion of safety is complete. But let’s look at what the AI doesn’t see.</p><h3>What the Manifest Leaves Behind</h3><p>When Kubernetes applies a manifest, it doesn’t evaluate your intent; it evaluates the literal declaration against the current cluster state. The AI generated a valid <em>object</em>, but it ignored the <em>environment</em>.</p><p>Here are three hidden operational failure modes embedded in that seemingly “safe” YAML:</p><h4>1. The Disruption Budget Blindspot</h4><p>You have three replicas requested, which implies redundancy. However, the AI generated a standalone Deployment object. It didn’t generate a PodDisruptionBudget (PDB).</p><p>If an automated node auto-scaler or a cluster upgrade drains the node hosting two of those pods simultaneously, Kubernetes will happily evict them. Without a PDB enforcing minAvailable: 2, your high-availability service drops to a single pod—or goes entirely offline—during routine maintenance. The AI saw a Deployment; an SRE sees a missing safety net.</p><h4>2. OOMKills and Unseen Workload Profiles</h4><p>The limits are set to 256Mi of memory. Where did that number come from?</p><p>The LLM selected a standard, generic default based on general training patterns. But it doesn’t know that during peak hours, your Python API spawns worker threads that consume up to 350Mi under burst traffic. The moment traffic spikes, the Linux kernel&#39;s OOM Killer will step in and terminate the pods. The YAML was syntactically correct, but operationally starved.</p><h4>3. Anti-Affinity and Single-Point-of-Failure Scheduling</h4><p>Three replicas sound safe until the default scheduler places all three pods on the exact same underlying worker node because it happens to have available capacity.</p><p>Unless explicitly configured with podAntiAffinity or topologySpreadConstraints, those three replicas offer zero real fault tolerance if that underlying AWS EC2 instance suffers a hardware failure.</p><pre># What an experienced engineer knows to add for real safety:<br>topologySpreadConstraints:<br>- maxSkew: 1<br>  topologyKey: topology.kubernetes.io/zone<br>  whenUnsatisfiable: DoNotSchedule<br>  labelSelector:<br>    matchLabels:<br>      app: payment-api</pre><p>The AI didn’t include topology constraints because your prompt didn’t explicitly ask for multi-zone fault isolation. It gave you exactly what you asked for, not what your cluster required.</p><h3>Syntactic Validity vs. Operational Correctness</h3><p>The danger with AI in platform engineering isn’t that it generates bad code; it’s that it generates <strong>convincing</strong> code.</p><p>In traditional software development, broken logic usually manifests as a compilation error, a failed unit test, or a stack trace. In Kubernetes, invalid operational logic doesn’t crash on application — it waits silently until a node fails, a deployment rolls out, or network traffic spikes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/895/1*O_U4KnOq5Q-y-7JMsbY1Tg.png" /></figure><p>When we rely on AI to generate infrastructure manifests without deep contextual integration, we confuse <strong>syntactic validity</strong> with <strong>operational correctness</strong>.</p><ul><li><strong>Syntactic validity</strong> means the API server can parse the structure.</li><li><strong>Operational correctness converter</strong> means the workload behaves safely under degraded network conditions, cluster autoscaling, node evictions, and rolling updates.</li></ul><p>AI understands schema; engineers understand behavior under stress.</p><h3>Where AI Actually Belongs in Kubernetes Workflows</h3><p>Does this mean we shouldn’t use AI for Kubernetes? Not at all. It means we need to shift our expectations from <strong>generation</strong> to <strong>contextual evaluation</strong>.</p><p>Instead of asking AI to write raw manifests from scratch and piping them into kubectl apply, a much safer paradigm leverages AI as a context-aware auditor and reviewer.</p><h4>1. Policy Generation Over Manifest Generation</h4><p>Use AI to help author OPA Gatekeeper policies, Kyverno rules, or Datree checks. Instead of relying on the AI to remember to include a PDB or topology spread constraints in every single Deployment, use it to generate the admission control rules that enforce those safety standards cluster-wide.</p><h4>2. Explaining State Drift and Rollout Failures</h4><p>AI shines when analyzing dynamic state rather than static text. Feeding a failed kubectl describe pod output, event logs, and deployment specs into an LLM to quickly summarize why a image pull backoff or probe failure is occurring leverages its fast pattern-matching capabilities without granting it execution authority.</p><h4>3. Drafting Base Templates for Human Refinement</h4><p>Treat AI-generated YAML as an unverified rough draft. The generation step saves typing time, but the engineering work only begins when an engineer evaluates the draft against live cluster constraints:</p><ul><li><em>What node pool will this land on?</em></li><li><em>How does this interact with our cluster autoscaler?</em></li><li><em>What happens when this service loses connectivity to its database?</em></li></ul><h3>The Takeaway</h3><p>Automation in Kubernetes has always promised to abstract away complexity. But abstracting away the boilerplate is very different from abstracting away the operational reality.</p><p>An AI model can write a Deployment, a Service, and an Ingress in seconds. But it doesn’t know your cluster’s instance types, your cross-AZ data transfer costs, your node upgrade schedule, or your traffic profiles.</p><p><strong>AI can write valid Kubernetes YAML; only engineers understand the blast radius of applying it.</strong></p><p>How is your team handling AI-generated configurations in CI/CD pipelines? Are you enforcing admission policies to catch invisible operational gaps? Let me know your thoughts in the comments.</p><p><em>Note: This article was written with the assistance of AI tools for structuring and drafting. The ideas, examples, and perspectives are based on real-world experience in DevOps and cloud engineering.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd0095df4e9d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Happens When AI Meets Legacy DevOps Pipelines]]></title>
            <link>https://medium.com/@yogesh.vk/what-happens-when-ai-meets-legacy-devops-pipelines-e533d33322e7?source=rss-c06b57ad8ac6------2</link>
            <guid isPermaLink="false">https://medium.com/p/e533d33322e7</guid>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Yogesh VK]]></dc:creator>
            <pubDate>Sat, 10 Oct 2026 11:36:49 GMT</pubDate>
            <atom:updated>2026-10-10T11:36:49.366Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KLDdvX8AohV2XxEMknnqkg.png" /></figure><h3>The Pipeline That Nobody Wants to Touch</h3><p>There is a particular kind of DevOps pipeline that most engineers eventually encounter. It works. Nobody really likes it. Nobody is entirely sure who originally wrote it.</p><p>And everyone knows that changing it before a Friday production deployment is probably a bad idea. Maybe it started as a simple Jenkinsfile.</p><p>Over the years, someone added a security scan. Someone else added a manual approval. Then came a workaround for an old deployment system. A shell script appeared because the Jenkins plugin couldn’t do something reliably. Another script was added because the first script had a problem.</p><p>Eventually, you end up with something like this:</p><pre>stage(&#39;Deploy&#39;) {<br>    steps {<br>        sh &#39;./scripts/prepare.sh&#39;<br>        sh &#39;./scripts/deploy.sh&#39;<br>        sh &#39;./scripts/verify.sh&#39;<br>    }<br>}</pre><p>And somewhere inside those scripts are another few hundred lines of Bash.</p><p>Then one day, someone gives the whole thing to an AI coding agent and asks:</p><blockquote><em>“Can you modernize this CI/CD pipeline?”</em></blockquote><p>And the AI comes back with a beautifully clean pipeline. That’s where things get interesting.</p><h3>AI Sees Technical Debt. Engineers See History.</h3><p>If I look at an old pipeline and see five shell scripts, duplicated environment variables, strange conditionals and a Jenkins plugin that hasn’t been updated in years, my first reaction might be the same as AI’s.</p><p>Why is this so complicated and why are we doing this manually?</p><p>Why aren’t we using the newer deployment mechanism? Why do we have three different scripts doing something that looks like it could be one command?</p><p>From a purely technical perspective, those are reasonable questions. But legacy pipelines have something that source code doesn’t always make obvious: <strong>history.</strong></p><p>That strange shell command might exist because a previous version of the deployment tool had a bug. That environment variable might exist because one particular production server doesn’t behave like the others. That manual approval might have been introduced after an incident. That seemingly redundant verification step might be checking something that the deployment tool itself cannot detect. The pipeline may look messy because the system around it is messy. And AI doesn’t automatically know that history.</p><h3>The Modernization Looks Great</h3><p>Let’s say the original pipeline does something like this:</p><pre>$ ./deploy.sh production<br><br>Checking environment...<br>Loading production variables...<br>Running database pre-check...<br>Deploying application...<br>Waiting for deployment...<br>Running smoke tests...<br><br>Deployment completed successfully.</pre><p>An AI agent looks at this and suggests replacing several of those steps with a cleaner deployment stage.</p><p>Maybe:</p><pre>$ kubectl apply -f deployment.yaml<br>deployment.apps/payments-api configured<br><br>$ kubectl rollout status deployment/payments-api<br>deployment &quot;payments-api&quot; successfully rolled out</pre><p>Much cleaner. And technically, that might be exactly what we want. But here’s the question I would ask before merging it: <strong>What was </strong><strong>deploy.sh actually doing?</strong></p><p>Because the filename doesn’t tell us everything. Maybe it was doing much more than deploying the application. Maybe it was checking whether a database migration was required. Maybe it was updating an external load balancer. Maybe it was waiting for a legacy service to become available. Maybe it was deliberately running things in a specific order because the production environment required it.</p><p>The AI sees a script. The engineer needs to understand the behavior hidden inside the script.</p><h3>Legacy Pipelines Often Contain Invisible Contracts</h3><p>This is where legacy DevOps systems get particularly difficult. A pipeline can have dependencies that aren’t obvious from the pipeline itself.</p><p>For eg:</p><pre>$ grep -R &quot;production&quot; Jenkinsfile scripts/<br><br>Jenkinsfile: environment = &quot;production&quot;<br>scripts/deploy.sh: source /opt/company/env/production.env<br>scripts/verify.sh: curl https://internal-api/health<br>scripts/rollback.sh: ./legacy-rollback production</pre><p>The pipeline may depend on files, servers, credentials, APIs, naming conventions and operational procedures that exist outside Git.</p><p>That’s an invisible contract and AI can only reason about what it can actually see. If you give an AI agent the Jenkinsfile but not the scripts it calls, it might confidently recommend removing something that looks unnecessary. If you give it the repository but not the operational documentation, it may miss why a particular step exists.</p><p>If you give it the code but not the history of production incidents, it has no way of knowing that a strange-looking workaround may actually be protecting the system. This is where <strong>context becomes more important than code quality</strong>.</p><h3>The Most Dangerous Changes May Be the Cleanest Ones</h3><p>This is probably the part of legacy modernization that I find most interesting. When AI improves a piece of code, the result often looks better.</p><p>The pipeline becomes shorter and configuration becomes more consistent. The number of steps goes down and scripts disappear. The deployment process becomes easier to understand and that can make the change <em>look safer</em>.</p><p>But reducing complexity in the pipeline doesn’t necessarily reduce complexity in the system. Sometimes you’ve simply moved the complexity somewhere else. For example, imagine the old pipeline has:</p><pre>./precheck.sh<br>./deploy.sh<br>./verify.sh</pre><p>And AI turns that into:</p><pre>kubectl apply -f deployment.yaml<br>kubectl rollout status deployment/app</pre><p>That is certainly cleaner. But what happened to everything that precheck.sh and verify.sh were doing? If those scripts contained important operational checks, we haven’t modernized the pipeline. We’ve removed safeguards, and that’s a very different thing.</p><h3>This Doesn’t Mean AI Can’t Modernize Legacy Pipelines</h3><p>I actually think this is one of the areas where AI can be extremely useful. Legacy pipelines are often difficult to understand because the knowledge is distributed across Jenkinsfiles, Bash scripts, documentation, configuration files and tribal knowledge.</p><p>AI is very good at helping us explore that complexity. For example, I can ask it:</p><blockquote><em>“Trace everything that happens when this pipeline deploys to production.”</em></blockquote><p>Or:</p><blockquote><em>“Show me every external dependency used by this Jenkins pipeline.”</em></blockquote><p>Or:</p><blockquote><em>“Explain what this shell script is checking before deployment.”</em></blockquote><p>That is a much safer starting point than:</p><blockquote><em>“Rewrite this pipeline.”</em></blockquote><p>The first approach asks AI to <strong>understand the existing system</strong>. The second asks it to <strong>replace the existing system</strong>. Those are very different tasks.</p><h3>I Would Start With Read-Only AI</h3><p>If I were introducing AI into an old production pipeline, I wouldn’t start by giving it permission to modify the pipeline.</p><p>I’d start by letting it observe. Give it the Jenkinsfile, the scripts, the deployment configuration, the logs and all the documentation. Then ask questions.</p><p>The pipeline isn’t just a collection of strange commands anymore. We can start asking <strong>why those commands appeared</strong>. That historical context can be incredibly valuable when deciding what is safe to remove.</p><h3>Modernization Should Be Incremental</h3><p>This is where I think AI can work particularly well with legacy DevOps.</p><p>Instead of asking:</p><blockquote><em>“Replace this entire pipeline.”</em></blockquote><p>I’d rather ask:</p><blockquote><em>“Identify the parts of this pipeline that can be safely modernized, explain what each part currently does, and identify dependencies or risks before proposing changes.”</em></blockquote><p>Then make one change, test it and observe it. Then make another change. Run it in a lower environment and Compare the behavior. Then gradually move toward the new pipeline.</p><p>The goal isn’t to make the Jenkinsfile beautiful. The goal is to <strong>change the system without accidentally removing knowledge that the old pipeline encoded.</strong></p><h3>AI Meets Legacy: Context Before Change</h3><p>This is probably the bigger lesson I take from this. AI is very good at looking at a messy pipeline and saying:</p><blockquote><em>“I can make this simpler.”</em></blockquote><p>Sometimes that’s exactly what we need. But before simplifying a legacy DevOps system, I want to understand <strong>why it became complicated in the first place</strong>.</p><p>Because technical debt isn’t always random. Sometimes it’s accumulated operational knowledge. A strange script might represent an old incident. A manual step might represent a control that was introduced after a failure. A redundant check might exist because something once went badly without it.</p><p>And if we remove those things without understanding them, we may end up with a pipeline that looks much better while being operationally worse. That’s the paradox of AI and legacy DevOps.</p><p><strong>AI can see the mess very quickly.</strong></p><p><strong>The engineer still needs to understand the history behind the mess.</strong></p><p>And that’s where I think AI can be most useful — not as the thing that immediately rewrites the legacy pipeline, but as the engineer’s assistant for understanding it before we decide what should change.</p><p><em>Note: This article was written with the assistance of AI tools for structuring and drafting. The ideas, examples, and perspectives are based on real-world experience in DevOps and cloud engineering.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e533d33322e7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Hidden Risk of AI-Generated Kubernetes YAML]]></title>
            <link>https://medium.com/@yogesh.vk/the-hidden-risk-of-ai-generated-kubernetes-yaml-230049d94844?source=rss-c06b57ad8ac6------2</link>
            <guid isPermaLink="false">https://medium.com/p/230049d94844</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Yogesh VK]]></dc:creator>
            <pubDate>Sat, 26 Sep 2026 04:31:03 GMT</pubDate>
            <atom:updated>2026-09-26T04:31:03.343Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OWp7HK3L8J0OcVtjjK5M_Q.png" /></figure><h3>AI can generate perfectly valid Kubernetes YAML but that does not mean it understands what the cluster actually needs</h3><p>Give AI a description like:</p><blockquote><em>“Create a production-ready Deployment for a Node.js API with three replicas, health checks, resource limits, and a rolling update strategy.”</em></blockquote><p>And within seconds, you can get something that looks perfectly reasonable.</p><pre>apiVersion: apps/v1<br>kind: Deployment<br>metadata:<br>  name: payments-api<br>spec:<br>  replicas: 3<br>  selector:<br>    matchLabels:<br>      app: payments-api<br>  template:<br>    metadata:<br>      labels:<br>        app: payments-api<br>    spec:<br>      containers:<br>        - name: payments-api<br>          image: payments-api:1.4.2<br>          ports:<br>            - containerPort: 8080<br>          resources:<br>            requests:<br>              cpu: &quot;250m&quot;<br>              memory: &quot;256Mi&quot;<br>            limits:<br>              cpu: &quot;500m&quot;<br>              memory: &quot;512Mi&quot;</pre><pre>$ kubectl apply -f deployment.yaml<br>deployment.apps/payments-api created</pre><pre>$ kubectl get pods<br><br>NAME                            READY   STATUS    RESTARTS   AGE<br>payments-api-7d8f6c7d9c-2x4kq   1/1     Running   0          12s<br>payments-api-7d8f6c7d9c-8m7hz   1/1     Running   0          12s<br>payments-api-7d8f6c7d9c-q9v2p   1/1     Running   0          12s</pre><p>Everything looks good. And that’s exactly where the hidden risk begins. The YAML is syntactically correct. Kubernetes accepted it. The Pods are running. But none of that tells us whether this workload is actually safe for <em>this</em> cluster. This gives us the central thesis without needing a long story.</p><h3>Kubernetes Doesn’t Know What Your AI Doesn’t Know</h3><p>The main difference lies in</p><blockquote>Valid Kubernetes configuration</blockquote><p>and</p><blockquote>Correct configuration for your environment</blockquote><p>There could be multiple issues lurking in the back. Like:</p><ul><li>Does the cluster have enough capacity?</li><li>Does this application normally run three replicas?</li><li>Is there a PodDisruptionBudget?</li><li>Does it need topology spread?</li><li>Are there taints?</li><li>Are there dedicated node pools?</li><li>Is this workload allowed to run on every node?</li></ul><p>AI can generate a valid answer because Kubernetes has a well-defined schema. But Kubernetes isn’t validating your <strong>operational intent</strong>.</p><p>For example:</p><pre>$ kubectl describe pod payments-api-7d8f6c7d9c-2x4kq<br><br>Requests:<br>  cpu:        250m<br>  memory:     256Mi<br>Limits:<br>  cpu:        500m<br>  memory:     512Mi</pre><p>But nodes look something like this:</p><pre>$ kubectl top nodes<br><br>NAME          CPU(cores)   CPU%   MEMORY(bytes)   MEMORY%<br>gke-node-01   1850m        92%    14600Mi         91%<br>gke-node-02   1720m        86%    13900Mi         87%<br>gke-node-03   1640m        82%    13100Mi         81%</pre><p>Now the YAML’s 250m / 256Mi suddenly becomes much more interesting. The AI didn’t necessarily do anything syntactically wrong. It simply didn’t know enough about the cluster.</p><p>But an engineer working on the cluster may already know that gke-node-01 and gke-node-02 belong to one node pool, while another pool is dedicated to workloads with a particular taint.</p><p>The YAML generator doesn’t automatically have that context. And this is important:</p><blockquote><strong>The missing information is often more important than the YAML itself.</strong></blockquote><h3>A Pod Being Running Doesn&#39;t Mean the Application Is Healthy</h3><p>This is another trap I see with generated manifests. AI can easily add a liveness probe:</p><pre>livenessProbe:<br>  httpGet:<br>    path: /health<br>    port: 8080</pre><p>It looks good. But what does /health actually mean? Imagine the application returns:</p><pre>$ curl http://payments-api:8080/health<br>200 OK</pre><p>Even when its database connection pool is exhausted. Or its Redis connection is broken. Or it can accept HTTP requests but cannot actually process payments.</p><p>The Kubernetes API doesn’t know what your application considers healthy. That’s why I don’t think of probes as YAML configuration alone. They are application behavior expressed through YAML. And that’s a subtle but a very important distinction.</p><p>Unless AI understands what /health actually does, it is mostly guessing.</p><h3>This Is Where I Use AI Differently</h3><p>I don’t think the answer is to stop using AI for Kubernetes. Actually quite the opposite. I find AI extremely useful for generating the first version of a manifest. For example, it is much faster to ask:</p><blockquote><em>“Create a Deployment with a rolling update strategy, resource requests, readiness and liveness probes.”</em></blockquote><p>than to start from an empty file.</p><p>The important part is what happens next. I’ll take the generated YAML and compare it with the actual environment. I’ll inspect the existing workload and also the resource usage. And I’ll check the cluster itself too.</p><pre>$ kubectl diff -f deployment.yaml<br><br>$ kubectl get deployment payments-api -o yaml<br><br>$ kubectl top pods -l app=payments-api<br><br>$ kubectl get nodes<br><br>$ kubectl describe nodes</pre><p>The AI-generated YAML is now just one input into the decision rather than being the decision itself.</p><h3>Conclusion: AI Sees the Manifest. Engineers See the System</h3><p>This is why I think the conversation around AI-generated Kubernetes YAML is slightly misplaced. The question isn’t:</p><blockquote><em>“Can AI generate Kubernetes YAML?”</em></blockquote><p>Of course it can. The more interesting question is:</p><blockquote><em>“What does AI know about the system that YAML is going to change?”</em></blockquote><p>If the answer is “only the prompt I gave it” then there is a significant amount of context missing and Kubernetes is full of context.</p><ul><li>The cluster has state.</li><li>The workloads have history.</li><li>The nodes have capacity.</li><li>The applications have behavior.</li><li>The organization has policies.</li><li>And production has consequences.</li></ul><p>AI can generate the YAML very quickly. But the hardest part of Kubernetes isn’t remembering the syntax. It’s understanding <strong>why those particular values are appropriate for that particular system</strong>. That is where I still want an engineer in the loop.</p><p><em>Note: This article was written with the assistance of AI tools for structuring and drafting. The ideas, examples, and perspectives are based on real-world experience in DevOps and cloud engineering.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=230049d94844" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Biggest AI Mistake DevOps Teams Are Making]]></title>
            <link>https://medium.com/@yogesh.vk/the-biggest-ai-mistake-devops-teams-are-making-d2842da34b35?source=rss-c06b57ad8ac6------2</link>
            <guid isPermaLink="false">https://medium.com/p/d2842da34b35</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[prompt-engineering]]></category>
            <dc:creator><![CDATA[Yogesh VK]]></dc:creator>
            <pubDate>Fri, 18 Sep 2026 14:31:01 GMT</pubDate>
            <atom:updated>2026-09-18T14:31:01.381Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GkWQRZ1Ehf0BfBPf3qn68g.png" /></figure><p>Over the past year, I’ve seen countless discussions about prompt engineering. Entire threads are dedicated to crafting the perfect prompt.</p><p>People debate wording, structure, formatting, and prompt templates as if the right combination of words can magically unlock better outcomes from AI systems.</p><p>At first, I approached AI the same way. Whenever an answer wasn’t useful, my instinct was to improve the prompt. Make it more specific. Add more instructions. Rephrase the request. Sometimes it helped.</p><p>Most of the time, it didn’t. What eventually changed my mind wasn’t a better prompt. It was better context.</p><p>One of the first places I noticed this was while working with Terraform.</p><p>Imagine asking an AI assistant a seemingly simple question:</p><blockquote><em>“Review this Terraform change and identify any risks.”</em></blockquote><p>A perfectly reasonable request. The prompt is clear. The objective is obvious. The model can read the configuration and produce a detailed response. And it does this often. It may point out resource replacements and may identify networking changes. It may even explain potential downtime scenarios. The answer sounds intelligent, but the problem is that the AI only knows what you’ve shown it.</p><p>It can see the Terraform files, but it cannot see the production environment. It also cannot see the state file. Neither can it see the historical decisions that shaped the platform. And those missing pieces often matter far more than the wording of the prompt itself.</p><p>I remember experimenting with a node pool change in a GKE environment.</p><p>The Terraform diff was relatively small. A change in machine type. A change in scaling limits. Nothing looks dramatic. I asked an AI assistant whether the modification looked safe. The response was impressive and convincing.</p><p>It correctly described the infrastructure change, identified cost implications, and even highlighted potential disruption during node replacement. Everything it said was technically accurate.</p><p>What it didn’t know was that this cluster hosted several workloads with strict scheduling constraints. It didn’t know that previous node pool changes had caused disruption because of PodDisruptionBudget limitations. It didn’t know that regional quota limits were already close to exhaustion. The prompt wasn’t the problem. The missing context was.</p><p>The same thing happens in Kubernetes. A deployment manifest may tell only a fraction of the story. An AI can review resource requests, health checks, and autoscaling settings. It can explain what those configurations do. It can even recommend improvements.</p><p>But a production system is rarely defined by a single YAML file. There are dependencies, traffic patterns and regional failover behavior.</p><p>Then there are business priorities and operational constraints. Most of those things never appear in the prompt. Yet they influence every decision engineers make.</p><p>This is why I’ve become increasingly interested in what many people now call context engineering.</p><p>Not because prompts don’t matter. But prompts are often the final step. Context is everything that comes before. The architecture diagrams, the terraform state, custom runbooks/SOPs/MOPs, deployment history, platform conventions, operational constraints, business rules, incident learnings and much more.</p><p>And then there undocumented tribal knowledge that experienced engineers carry around in their heads. When those pieces are missing, even the most sophisticated prompt becomes surprisingly limited.</p><p>A useful mental model is to imagine onboarding a new platform engineer. On their first day, you wouldn’t hand them a ticket and say:</p><blockquote><em>“Use your best judgment.”</em></blockquote><p>You would first explain the system. You would show them the architecture. You would explain naming conventions, review deployment workflows, discuss previous incidents and walk through operational guardrails.</p><p>Only after providing that context would you expect meaningful decisions.</p><p>And yet with AI, many teams do the opposite. They spend hours refining prompts while providing almost no context about the environment.</p><p>The interesting thing is that context engineering doesn’t necessarily require bigger models or more complicated tooling.</p><p>Sometimes it can be as simple as a well-maintained context.md file. A repository README and a deployment guide. Terraform state visibility and architecture documentation. And also a collection of previous incident reports. Each of those gives the AI something far more valuable than another paragraph of prompt instructions. They give it an understanding of the system.</p><p>I’ve started noticing a recurring pattern across nearly every successful AI-assisted workflow I’ve seen in DevOps. The teams getting the best results are rarely the teams with the cleverest prompts.</p><p>They’re the teams that have invested in making context available. They’ve documented their systems. They’ve captured operational knowledge. They’ve built guardrails. They’ve made the environment understandable. The AI benefits from that effort, but so do the humans.</p><p>Over time, I’ve come to think of prompt engineering as asking better questions. Context engineering is making sure the system understands the problem in the first place. Both matter.</p><p>But only one of them changes how well the AI understands your world. And in infrastructure engineering, understanding the world is usually more important than finding the perfect words to describe it.</p><p><em>Note: This article was written with the assistance of AI tools for structuring and drafting. The ideas, examples, and perspectives are based on real-world experience in DevOps and cloud engineering.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d2842da34b35" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Can Generate Terraform. It Can’t See the Blast Radius]]></title>
            <link>https://medium.com/@yogesh.vk/ai-can-generate-terraform-it-cant-see-the-blast-radius-c1a59c591d06?source=rss-c06b57ad8ac6------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1a59c591d06</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[site-reliability-engineer]]></category>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[infrastructure-as-code]]></category>
            <dc:creator><![CDATA[Yogesh VK]]></dc:creator>
            <pubDate>Sat, 18 Jul 2026 03:31:01 GMT</pubDate>
            <atom:updated>2026-07-18T03:31:01.777Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t9qLX32V10CVZykLlh4LlA.png" /></figure><p>One of the most impressive things about modern AI systems is how quickly they can generate infrastructure code. Need a new VPC, ask an AI assistant. Need a Kubernetes node pool, paste a prompt. Need to modify an IAM policy or update an autoscaling group, AI can write a working Terraform code in seconds.</p><p>The first few times I tried this, I was genuinely impressed with what AI could do. The generated code looked clean and compliant to best practices. Resources were connected correctly, variables were sensible, lots of comments to make code legible, and in many cases, the configuration was technically valid.</p><p>But over time, I started noticing something interesting.</p><p>The hardest part of infrastructure engineering was never writing Terraform. The hardest part was understanding what the change would actually do. And that’s exactly where AI still struggles.</p><p>Every infrastructure engineer has experienced this moment.</p><p>You open a pull request and see a surprisingly small Terraform change. Perhaps someone increased the desired node count in a GKE cluster. Perhaps an IAM role was updated. Maybe a networking rule changed.</p><p>The diff is short, plan completes successfully and nothing looks alarming. And yet experienced engineers instinctively slow down. Not because they distrust Terraform, but because they understand that infrastructure changes rarely exist in isolation.</p><p>A small scaling adjustment might trigger quota issues in another region. An innocent-looking IAM update might accidentally broaden permissions. A networking change might affect workloads that aren’t even visible in the repository being reviewed.</p><p>The Terraform itself can look perfectly reasonable while the consequences remain invisible.</p><p>This is where I think many conversations about AI-generated infrastructure miss the point. People often ask:</p><blockquote><em>“Can AI write Terraform?”</em></blockquote><p>At this stage, the answer is increasingly yes.</p><p>A more interesting question is:</p><blockquote><em>“Can AI understand the blast radius of the Terraform it generates?”</em></blockquote><p>That answer is far less obvious. Because blast radius isn’t stored in a .tf file. It’s distributed across architecture diagrams, tribal knowledge, deployment history, previous incidents, cloud quotas, business priorities, and operational constraints.</p><p>Two identical Terraform changes can have completely different consequences depending on the environment in which they’re applied. Changing a node pool in a development cluster is very different from changing one that supports a critical production workload.</p><p>Increasing resource limits in one region may be harmless while causing failures elsewhere. Replacing an IAM role may appear safe until another team discovers that their deployment pipeline depended on a permission that no longer exists. AI sees the code in isolation but experienced engineers see the connected systems.</p><p>I’ve started to notice that senior infrastructure engineers rarely review Terraform line by line. Instead, they ask questions.</p><ul><li>What else depends on this?</li><li>Who owns this service?</li><li>Has something similar caused incidents before?</li><li>What happens if this resource disappears for five minutes?</li><li>What happens if it scales unexpectedly?</li></ul><p>The interesting thing is that these questions often have nothing to do with Terraform syntax. They’re really questions about context. And context is precisely what AI lacks unless we explicitly provide it.</p><p>This doesn’t mean AI is not helpful. In fact, I think AI is becoming incredibly valuable in infrastructure workflows.</p><p>It can summarize plans that would otherwise take ten minutes to parse. It can identify resources that may be recreated. It can explain complex dependencies between modules. It can highlight cost implications and surface unusual changes. These capabilities reduce cognitive load and help engineers move faster. But they don’t remove the need for human judgment. Because understanding infrastructure isn’t only about understanding resources. It’s about understanding consequences.</p><p>I’ve found myself thinking about AI-generated Terraform in the same way I think about a junior platform engineer. A junior engineer can absolutely propose infrastructure changes. They can write modules, suggest improvements, and automate repetitive tasks. But before those changes reach production, someone with a broader view of the system reviews them. Not because the junior engineer is incompetent but because infrastructure decisions extend far beyond the code itself.</p><p>The same principle applies to AI. The generated Terraform may be correct, syntax may be valid, the resources may even deploy successfully, and yet the blast radius may still be misunderstood.</p><p>As AI becomes more capable, I suspect the real challenge won’t be teaching machines how to write infrastructure. It will be teaching them how infrastructure behaves once it interacts with the rest of the system.</p><p>Until then, I think the most valuable role for AI in Terraform workflows is not to own the change. It’s to help humans understand the consequences before they decide whether the change should exist at all.</p><p><em>Note: This article was written with the assistance of AI tools for structuring and drafting. The ideas, examples, and perspectives are based on the real-world experience in DevOps and cloud engineering over the years.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1a59c591d06" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Read-Only SRE: My Favorite Way to Use AI in Production]]></title>
            <link>https://medium.com/@yogesh.vk/the-read-only-sre-my-favorite-way-to-use-ai-in-production-74653ff3c133?source=rss-c06b57ad8ac6------2</link>
            <guid isPermaLink="false">https://medium.com/p/74653ff3c133</guid>
            <category><![CDATA[site-reliability-engineer]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[infrastructure-as-code]]></category>
            <category><![CDATA[sre]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Yogesh VK]]></dc:creator>
            <pubDate>Fri, 10 Jul 2026 04:07:35 GMT</pubDate>
            <atom:updated>2026-07-10T06:49:54.142Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6Pem0UNKtp624xJp8kyRiQ.png" /></figure><p>For years, Site Reliability Engineering, from what I understand, has been built around a simple idea: automate what can be automated, but be cautious about where trust is placed.</p><p>Production systems are valuable not because they’re difficult to operate, but because every decision has consequences. A small configuration mistake can become a customer-facing outage. A poorly timed deployment can impact thousands of users. Experience teaches engineers that production isn’t just another environment — it’s where judgment matters.</p><p>As AI becomes increasingly capable, many of us are beginning to ask the same question. Where does AI belong in production operations?</p><p>Some conversations immediately jump to autonomous incident response, automated remediation, or AI-driven deployments. While those ideas are exciting, I’ve found myself taking a much more conservative approach.</p><p>Instead of asking, <em>“What can AI control?”</em>, I started asking a different question:</p><blockquote>“How much value can AI provide without controlling anything?”</blockquote><p>Answer, I think, is — <strong>quite a lot.</strong></p><h3>Production Already Produces Too Much Information</h3><p>One thing I’ve noticed over the years is that SREs rarely struggle because information is missing. They struggle because there’s <strong>too much information.</strong></p><p>An incident begins. Alerts start firing left and right. Dashboards turn red. Logs begin filling up really fast. Slack channels become active all of sudden. People start opening Grafana, Kubernetes dashboards, Cloud Monitoring, GitLab pipelines, and documentation — all at the same time.</p><p>The challenge isn’t collecting data anymore. It’s understanding the situation quickly enough to make good decisions. This is exactly where I think AI has found its first truly valuable role.</p><p>Not replacing the engineer. Helping the engineer think faster.</p><h3>What I Let AI Do</h3><p>If I imagine AI joining my SRE team tomorrow, the first thing I’d give it is <strong>read-only access.</strong></p><p>Read logs, Kubernetes events, monitoring dashboards, deployment history, Terraform plans, Git commits, incident timelines, and anything else that is normally involved in initial Incident troubleshooting.</p><p>Then ask it questions. Something like:</p><ul><li>“What changed in the last hour?”</li><li>“Which deployments happened before latency increased?”</li><li>“Are there any unusual patterns in these logs?”</li><li>“Summarize the last thirty minutes.”</li></ul><p>Those are incredibly valuable tasks. Notice something interesting. None of them require AI to modify production.</p><h3>Where I Draw the Line</h3><p>The moment AI starts making production changes, the conversation changes completely.</p><p>Restarting a deployment. Scaling workloads. Deleting resources. Changing Terraform code. Updating firewall rules.</p><p>Those aren’t information problems anymore. They’re ownership problems. Every experienced SRE knows that incidents are messy. Information is incomplete. Monitoring isn’t perfect. Sometimes the correct technical decision isn’t the correct business decision.</p><p>No AI model understands customer expectations, maintenance windows, contractual obligations, or organizational priorities unless those things have been explicitly provided.</p><p>Even then, accountability still belongs to people. That’s why I think production writes should remain human decisions.</p><h3>AI as an SRE Intern</h3><p>I’ve started thinking about AI almost like an SRE intern. An incredibly fast intern. One that never gets tired. One that can read thousands of log lines in seconds. One that remembers documentation better than most humans.</p><p>But still an intern.</p><p>I’d happily ask that intern to prepare an incident timeline, summarize dashboards, highlight anomalies and suggest possible causes.</p><p>I would not ask that intern to restart production workloads without review. Not because the intern isn’t intelligent. Because the responsibility still belongs to the senior engineer who can take ownership.</p><h3>The Future</h3><p>I suspect AI systems will become increasingly capable over the next few years. Eventually they may earn broader operational responsibilities.</p><p>Perhaps they’ll restart stateless workloads under carefully defined policies and they’ll execute approved runbooks. Perhaps they’ll remediate well-understood failure scenarios. But I don’t think the journey starts there.</p><p>It starts by becoming exceptionally good at understanding production before attempting to control it.</p><p>Ironically, that’s exactly how we onboard new SREs. We don’t give production write access on day one. We let them observe, learn, dashboards and study previous incidents. Build intuition. Maybe AI deserves the same onboarding process.</p><h3>Final Thoughts</h3><p>Whenever people ask me whether AI will replace SREs, I think they’re asking the wrong question. The more interesting question is:</p><blockquote><em>“How can AI help SREs become better at understanding production systems?”</em></blockquote><p>For me, the answer begins with read-only access. Because before AI earns the right to change production, it should first prove that it truly understands it.</p><p><em>Note: This article was written with the assistance of AI tools for structuring and drafting. The ideas, examples, and perspectives are based on the real-world experience in DevOps and cloud engineering over the years.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74653ff3c133" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Better Prompts Won’t Fix AI in DevOps]]></title>
            <link>https://medium.com/@yogesh.vk/why-better-prompts-wont-fix-ai-in-devops-235c0abe1814?source=rss-c06b57ad8ac6------2</link>
            <guid isPermaLink="false">https://medium.com/p/235c0abe1814</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[infrastructure-as-code]]></category>
            <dc:creator><![CDATA[Yogesh VK]]></dc:creator>
            <pubDate>Fri, 26 Jun 2026 04:23:45 GMT</pubDate>
            <atom:updated>2026-06-26T04:23:45.482Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fj-ux5CjlSjBUra5_Asi0w.png" /></figure><p>Over the last year, I’ve lost count of how many conversations I’ve seen about prompt engineering. Every week there seems to be another article explaining how a different prompt structure, a new framework, or a carefully chosen set of words can dramatically improve the quality of AI-generated responses. It’s an interesting topic, and there is certainly some truth to it. A well-written prompt usually produces a better answer than a vague one. But after spending more time using AI in real DevOps workflows, I’ve come to believe that we’re focusing on the wrong problem.</p><p>The biggest improvements I’ve seen, have not come from asking better questions. They’ve always come from giving AI a better understanding of the environment it is supposed to reason about.</p><p>That realization didn’t happen overnight. Like many engineers, I initially assumed that if an AI produced an answer that wasn’t particularly useful, the fault was probably mine. Maybe the prompt wasn’t detailed enough. Maybe I needed to specify the expected format. Maybe I should explain the task differently. So I experimented. I rewrote prompts, added constraints, changed wording, and tried different approaches. The responses became slightly more polished, but they didn’t become significantly more useful.</p><p>The turning point came when I stopped changing the prompt and started changing the information I provided.</p><p>Instead of simply asking an AI to review a Terraform change, I began explaining how the infrastructure was organized. Instead of asking it to summarize Kubernetes logs, I described the platform architecture, the deployment workflow, and the operational constraints surrounding the application. Instead of expecting it to infer how our CI/CD pipeline worked, I gave it the context that every new engineer on the team would normally receive during onboarding.</p><p>And the difference was remarkable and it permanently changed how I approach things.</p><p>The prompts themselves became almost boring. They weren’t especially clever or sophisticated. In many cases they were only a sentence or two long. What changed was that the AI finally had enough background information to understand why the question mattered in the first place. Looking back, that shouldn’t have been surprising.</p><p>If a new platform engineer joined the team tomorrow, I wouldn’t judge their ability based on how well they answered questions during their first hour. Before expecting useful decisions, I would explain how our environments were structured, how deployments flowed through the pipeline, which services were considered critical, where the operational boundaries existed, and perhaps most importantly, why certain engineering decisions had been made in the past. None of that information would fit neatly into a ticket description, but it would heavily influence every decision that engineer made going forward.</p><p>AI is no different. We often expect it to reason about infrastructure that took years to evolve, while giving it only a handful of configuration files and a carefully worded prompt. When the answer falls short, our instinct is to keep refining the prompt instead of asking a more fundamental question: does the model actually understand the environment it’s being asked to reason about? In DevOps, the answer is often no.</p><p>Infrastructure isn’t defined only by Terraform modules, Kubernetes manifests, or CI/CD pipelines. It is defined by the relationships between those pieces. It includes architectural decisions that were made years ago, operational guardrails that exist because of previous incidents, naming conventions that everyone on the team follows without thinking, business priorities that influence deployment schedules, and countless small decisions that experienced engineers carry around almost instinctively. Most of that information never appears in a prompt, yet it shapes nearly every engineering decision we make.</p><p>This is why I’ve become increasingly interested in what I think of as context engineering. To me, it isn’t about inventing another AI buzzword. It’s simply the practice of making the surrounding system understandable before expecting useful answers. Good documentation becomes part of that context. Architecture diagrams become part of that context. Repository conventions, deployment workflows, incident learnings, infrastructure boundaries, and even the reasons behind previous technical decisions all become part of the environment the AI is trying to understand.</p><p>Ironically, this is exactly the kind of work that also benefits human engineers. Every team has experienced the challenge of onboarding someone into a mature platform. The difficulty isn’t teaching Terraform syntax or explaining how Kubernetes works. Most experienced engineers already know those things. The difficult part is transferring all the knowledge that exists between the lines of the documentation. Why is production deployed differently from staging? Why do certain services follow different release windows? Why is one Terraform module intentionally duplicated instead of shared? Those answers usually live in conversations, design reviews, and operational experience rather than in source code.</p><p>Perhaps that’s why context engineering feels much more aligned with infrastructure engineering than prompt engineering ever did. Infrastructure has always been about understanding systems rather than individual resources. AI simply exposes the same truth from a different angle. The better the system is documented and understood, the better both humans and machines are able to work within it.</p><p>I’m sure prompt engineering will continue to evolve, and it will undoubtedly remain an important skill for getting the best out of AI tools. But I suspect that, at least in DevOps, its importance is often overstated. Once the model truly understands the environment, the prompts themselves become surprisingly ordinary. They start looking less like carefully engineered instructions and more like the kind of questions one engineer naturally asks another.</p><p>And perhaps that’s the biggest lesson I’ve taken away from using AI in infrastructure engineering. The quality of the answer depends less on how elegantly we ask the question and far more on whether we’ve given the system enough context to understand our world before expecting it to solve our problems.</p><p><em>Note: This article was written with the assistance of AI tools for structuring and drafting. The ideas, examples, and perspectives are based on real-world experience in DevOps and cloud engineering.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=235c0abe1814" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using AWS DevOps Agent with Terraform and CI/CD Pipelines]]></title>
            <link>https://medium.com/@yogesh.vk/using-aws-devops-agent-with-terraform-and-ci-cd-pipelines-eb25c6eb8741?source=rss-c06b57ad8ac6------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb25c6eb8741</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Yogesh VK]]></dc:creator>
            <pubDate>Fri, 12 Jun 2026 04:21:26 GMT</pubDate>
            <atom:updated>2026-06-12T04:21:26.622Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0_CgKe4LBJ9H0T2l4zSYDw.png" /></figure><p>There’s no shortage of AI tools claiming to improve software delivery. Most of them focus on code generation. Some focus on chat interfaces. A few attempt to automate operational tasks.</p><p>What caught my attention about AWS DevOps Agent is that it focuses on something infrastructure teams spend a surprising amount of time doing every day: understanding changes.</p><p>As infrastructure grows, engineers spend less time writing Terraform and more time reviewing it, explaining it, validating it, and assessing risk before deployment.</p><p>That’s where I think tools like AWS DevOps Agent become interesting. Not because they replace engineers. But because they can reduce some of the cognitive load around infrastructure workflows.</p><p>Imagine a fairly typical Terraform pull request.</p><p>A developer modifies an EKS node group. Updates autoscaling limits.</p><p>Makes a few IAM changes. The Terraform plan is generated as part of a GitLab CI pipeline. The output may easily contain hundreds of lines.</p><pre>Terraform will perform the following actions:<br># aws_eks_node_group.platform<br>  ~ scaling_config<br>      desired_size: 3 -&gt; 6<br>  # aws_iam_role.platform<br>  ~ inline_policy</pre><p>Nothing unusual.</p><p>But someone still needs to understand:</p><ul><li>What changed?</li><li>Is there downtime risk?</li><li>Is there cost impact?</li><li>Is there a security implication?</li></ul><p>This is where an AI agent can be useful. Instead of asking engineers to parse raw plan output, the agent can generate a human-readable summary.</p><p>Something closer to:</p><blockquote><em>The node group capacity is being doubled from three to six nodes.</em></blockquote><blockquote><em>This may increase cluster costs but improves available capacity.</em></blockquote><blockquote><em>An IAM policy is also being modified. Review permissions carefully before applying.</em></blockquote><p>The Terraform hasn’t changed. The deployment process hasn’t changed. But the review process becomes easier.</p><p>The same idea applies to CI/CD pipelines. A typical deployment pipeline already produces a large amount of information.</p><ul><li>Build logs.</li><li>Security scans.</li><li>Terraform plans.</li><li>Kubernetes deployment outputs.</li><li>Test results.</li></ul><p>Most of this information is technically available. The challenge is understanding it quickly. An AI agent can act as an additional layer between the pipeline and the engineer.</p><p>Instead of scrolling through hundreds of lines of output, the engineer receives a concise explanation of what happened. Like having a senior teammate summarize the deployment.</p><p>Where I find this particularly interesting is that it aligns with a pattern I’ve written about several times before. The most useful AI systems in DevOps are often the ones that improve understanding rather than execution.</p><p>I am generally cautious about giving AI systems the authority to make infrastructure decisions.</p><p>I am much more comfortable letting them explain Terraform plans, summarize deployment risks, or surface unusual changes. That’s a very different trust boundary. One accelerates human decision-making. The other attempts to replace it.</p><p>I suspect this is where tools like AWS DevOps Agent will find their strongest use cases. Not by automatically deploying infrastructure. Not by replacing platform engineers. But by helping teams understand increasingly complex systems faster.</p><p>And as anyone who has spent time reviewing Terraform plans or deployment pipelines knows, understanding the change is often the hardest part.</p><p><em>Note: This article was written with the assistance of AI tools for structuring and drafting. The ideas, examples, and perspectives are based on real-world experience in DevOps and cloud engineering.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb25c6eb8741" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>