<?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 Muthu on Medium]]></title>
        <description><![CDATA[Stories by Muthu on Medium]]></description>
        <link>https://medium.com/@muthu176?source=rss-1c5139622ee8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*CwwisHXop_oPa0NZ</url>
            <title>Stories by Muthu on Medium</title>
            <link>https://medium.com/@muthu176?source=rss-1c5139622ee8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 12:46:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@muthu176/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[GenAI to Write Infrastructure Code]]></title>
            <link>https://medium.com/@muthu176/genai-to-write-infrastructure-code-7955f37ca55e?source=rss-1c5139622ee8------2</link>
            <guid isPermaLink="false">https://medium.com/p/7955f37ca55e</guid>
            <category><![CDATA[generative-ai-iac]]></category>
            <dc:creator><![CDATA[Muthu]]></dc:creator>
            <pubDate>Thu, 16 Jul 2026 04:44:43 GMT</pubDate>
            <atom:updated>2026-07-16T04:44:43.379Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A Platform Architect’s honest take on using Generative AI in real production environments</em></p><p><em>By Muthu | Platform Engineering Architect |Consulting</em></p><p>There is a moment in almost every infrastructure project where you are staring at a Terraform file at 11pm, copying resource blocks from Stack Overflow, tweaking provider arguments one line at a time, and wondering whether this is really the best use of a senior architect’s time. I had that moment more times than I would like to admit. And then I started using Generative AI for infrastructure code — and honestly, it changed how I work more than any tool has in the last ten years.</p><p>But I am not here to tell you it is magic. Because it is not. What it is — when you use it properly — is genuinely useful. And I want to share what that actually looks like in practice, because most of what I read about GenAI and infrastructure is either breathlessly optimistic or dismissively sceptical, and neither of those is particularly helpful if you are an architect trying to decide whether to actually use this stuff on a real client project.</p><p><strong>The Problem Nobody Talks About in Infrastructure Projects</strong></p><p>Here is the thing about infrastructure work that does not come up much in GenAI conversations — a huge amount of what senior architects spend time on is not deeply creative or uniquely strategic. It is writing the fifteenth variation of a security group rule, figuring out why a provider argument that worked last quarter is now deprecated, reading through 40-page provider documentation to find the one resource attribute you need, or writing the same kind of runbook you have written six times before for six different clients.</p><p>That is not a complaint. It is just the reality of platform engineering at scale. And it is exactly the kind of work where Generative AI, used properly, gives you genuine leverage.</p><p>When I started applying GenAI to Terraform code generation and OpenShift configuration work, the first thing I noticed was not the code quality — it was how much mental energy I got back. When a tool handles the syntax recall and boilerplate generation, you are free to think about the actual architecture decisions — the topology, the security model, the governance approach — which is where an architect’s judgment genuinely matters.</p><p><strong>What Actually Works — And What Does Not</strong></p><p>Let me be honest about something. The first few weeks of using GenAI for infrastructure work were a mixed experience. The outputs were good enough to be dangerous — meaning they looked correct at first glance but had subtle issues that you would only catch if you knew the platform well enough to question them.</p><p>A Transit Gateway connection block that used slightly wrong argument names. A Kubernetes configuration that referenced an API version that had been deprecated two releases back. An IKE policy that defaulted to version 1 when the environment needed version 2. None of these were catastrophic on their own — but any one of them deployed without review would have caused a head-scratching incident at 2am.</p><p>What this taught me is that <strong>the real skill with GenAI is not prompting — it is reviewing</strong>. The architect’s value in a GenAI-assisted workflow is not asking the right question. It is knowing enough to evaluate the answer critically. And that requires genuine platform expertise — probably more expertise than you need in a purely manual workflow, because you have to be able to spot the subtle errors in plausible-looking output.</p><p>The prompt quality matters too, though. The difference between a vague prompt and a structured one is enormous in infrastructure contexts. When I started providing full context — the exact platform version, the specific hardware or cloud environment, the constraint requirements, the desired output format, and how I would validate the result — the quality of outputs improved dramatically. Not because the AI got smarter, but because I stopped asking it to guess what I needed.</p><p><strong>The Validation Gate — Non-Negotiable</strong></p><p>I want to spend a moment on this because I think it is the most important thing I can say to anyone using GenAI for infrastructure work professionally.</p><p><strong>Every single GenAI output needs a validation gate before it touches production.</strong> No exceptions.</p><p>On my projects I established a simple three-stage process. First, the GenAI output is reviewed by the architect against the official provider documentation — not just read, but actively cross-referenced. Second, the configuration or code is applied in a non-production environment, and the behaviour is validated against expected outcomes. Third, a peer sign-off is required before production promotion.</p><p>This is not bureaucracy. It is basic engineering discipline applied to a new kind of input. We would never deploy infrastructure code that had not been reviewed and tested — and AI-generated code is no different. The fact that it looks confident and well-structured does not mean it is correct.</p><p>The architects and engineers who get into trouble with GenAI are the ones who mistake fluency for accuracy. The output reads well, it looks right, it follows the right patterns — and so it gets deployed without proper scrutiny. That is where things go wrong.</p><p><strong>What I Would Tell a Platform Architect Starting Out With This</strong></p><p>If you are a platform or infrastructure architect thinking about integrating GenAI into your delivery workflow, here is my honest, practical advice based on actual project experience:</p><p><strong>Start with the boring stuff first.</strong> Use GenAI for the parts of your work that are high-effort but low-creativity — boilerplate resource blocks, documentation first drafts, variable description writing, output file generation. Get comfortable with the review cycle before you move to more complex use cases.</p><p><strong>Invest in your prompting discipline early.</strong> Write structured prompts that provide full context. Treat prompt quality the same way you treat code quality — iterate, refine, and document the ones that work so you can reuse them.</p><p><strong>Build your validation workflow before you need it.</strong> Decide in advance how you will review and test GenAI outputs — do not figure it out after something goes wrong. The three-stage process I described works well and costs very little in time relative to the risk it manages.</p><p><strong>Be transparent with your team and your clients.</strong> AI-assisted delivery is not something to hide or be embarrassed about. When I have been upfront with clients about using GenAI tools in the delivery methodology — explaining the validation gates and governance approach — the response has been positive. Clients care about outcomes and quality, and a well-governed AI-assisted workflow can deliver better outcomes faster.</p><p><strong>Keep your technical depth sharp.</strong> This is perhaps counterintuitive, but I think GenAI makes deep technical expertise more valuable, not less. Because reviewing AI-generated infrastructure code for subtle errors requires knowing the platform at a level that most people do not bother to maintain. The architects who invest in genuine platform depth will be the ones who can use GenAI safely and effectively.</p><p><strong>Where This Is All Going</strong></p><p>I am not going to make sweeping predictions about the future of infrastructure engineering — there are enough of those articles already. What I will say is that based on my experience over the past year, the productivity gains from GenAI-assisted infrastructure work are real, measurable, and significant — and they compound over time as your prompting discipline and validation workflow mature.</p><p>The engineers and architects who will do best in this environment are not necessarily the ones who are most enthusiastic about AI. They are the ones who are most disciplined about it — who understand clearly what the tool is good at, what it is not good at, where human judgment is irreplaceable, and how to build the governance structures that make AI-assisted delivery safe and trustworthy.</p><p>That discipline, in my experience, comes from treating GenAI the way you would treat any powerful tool in your infrastructure toolkit — with respect, with rigour, and with a healthy scepticism that keeps you honest about what is happening under the hood.</p><p><strong>Final Thought</strong></p><p>The 11pm Terraform sessions have not disappeared entirely. But they are rarer now, shorter, and less frustrating — because a larger portion of the syntax generation and boilerplate work is handled by tools that are genuinely good at it. What I do with that recovered time and mental energy is what matters — and that, in the end, is the right way to think about what Generative AI does for a platform architect.</p><p>It does not replace the expertise. It respects your time enough to handle the parts that do not need it.</p><p><em>Muthu is a Platform Engineering Architect at Consulting, specialising in Red Hat OpenShift, Azure and IBM Cloud infrastructure, and Infrastructure as Code. He writes occasionally about platform engineering, AI-assisted delivery, and the practical realities of enterprise infrastructure work.</em></p><p><strong>Tags:</strong> Generative AI Infrastructure as Code Platform Engineering Terraform OpenShift Cloud DevOps Cloud Architecture</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7955f37ca55e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[VirtualMachineInstance ReplicaSet in Openshift Container Platform (OCP)]]></title>
            <link>https://medium.com/@muthu176/virtualmachineinstance-replicaset-in-openshift-container-platform-ocp-821de67eabef?source=rss-1c5139622ee8------2</link>
            <guid isPermaLink="false">https://medium.com/p/821de67eabef</guid>
            <category><![CDATA[vmirs]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[replicaset]]></category>
            <category><![CDATA[virtualization]]></category>
            <category><![CDATA[openshift-container-pla]]></category>
            <dc:creator><![CDATA[Muthu]]></dc:creator>
            <pubDate>Mon, 18 Apr 2022 06:45:06 GMT</pubDate>
            <atom:updated>2022-04-18T06:45:06.505Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*YWmA7E9wdtjUW8P29Pw6vA.png" /></figure><p>Like Kubernetes-Pods ReplicaSet, Virtual machines instances can also have replica set in Openshift Container Platform.</p><p>Yes, possible!</p><p>Using VirtualMachineInstanceReplicaSet is the right choice when one wants many identical VMs and does not care about maintaining any disk state after the VMs are terminated.</p><p><strong>VMIRS, </strong>is a pool of stateless VMIs, Availability is the main purpose. It creates random-named VMIs. In order to guarantee availability, it provides the specified number of wanted replicas.</p><p>A homogeneous set of virtual machine instances is always up and ready. Let’s see what are all possible and limitations as of today.</p><p>Note: undocumented in Redhat OCP and likely this would get improvised in upcoming days with reference to development &amp; growth of OCP.</p><p><strong>When to use vmirs:</strong></p><p>The base assumption is that referenced disks are read-only or that the VMIs are writing internally to a tmpfs (ephemeral volumes). The most obvious volume sources for VirtualMachineInstanceReplicaSets which KubeVirt supports are referenced below. If other types are used data corruption is possible. (As per Kubevirt documentation)</p><p>Volume types which work well in combination with a VirtualMachineInstanceReplicaSet are: cloudInitNoCloud, ephemeral, containerDisk, emptyDisk, configMap, secret, any other type, if the VMI writes internally to a tmpfs</p><p><strong>How to:</strong></p><ol><li>Use below Docker file</li></ol><blockquote>cat &gt; Dockerfile &lt;&lt; EOF<br>FROM registry.access.redhat.com/ubi8/ubi:latest AS builder<br>ADD — chown=107:107 centos7_vhd.qcow2 /disk/ <br>RUN chmod 0440 /disk/*<br>FROM scratch<br>COPY — from=builder /disk/* /disk/<br>EOF</blockquote><p>2. Yaml file to create Virtual machine instance replicaset (vmirs)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*30jggeF9WHzrr1OhaESYQQ.png" /></figure><p>3. Creating a vmirs</p><blockquote>&gt; oc create -f .\kubevirt-vm2.yaml</blockquote><p>virtualmachineinstancereplicaset.kubevirt.io/testreplicaset created</p><p>4. Checking list of VMI which were created as part of vmirs</p><blockquote>&gt; oc get vmi</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/809/1*a4MR46455idfO5dmydcr3Q.png" /></figure><p>In 30 secs, we could notice all three replicas are moved from scheduled to running state.</p><blockquote>&gt; oc get vmi</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/1*nrhW-FkkT6RDDPoFUWVkGw.png" /></figure><p>OCP Console Web User Interface</p><p>A VMIRS (replicas set) of 3 replicas of Cirros, yes it got created in same worker0 node. Disks are Ephemeral</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/425/1*EnvmavqQA1v5E6CtuOQa0A.png" /></figure><p>Note: Though there is a message consider using VM instead of VMI, vmirs works as expected with some limitations which have been observed.</p><p>As expected, deleting a VMI out of three replicas, another got created (new) VMI</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V5o0IeIMGJKUi9RcjSQYhw.png" /></figure><p><strong>Using HPA (Horizontal Pod AutoScaler)</strong></p><p>can be used with a VirtualMachineInstanceReplicaSet to get required replicas based on a condition. In below example, CPU usage is used as threshold of 20%.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*VII6tnohbyk_Ahex6foe7A.png" /></figure><p>&gt; oc get hpa</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d5kVC1RxZR-YEedX9lE-Fg.png" /></figure><p>Replicas (minimum) started with 3 and upon 20% and above CPU usage in VMIs, it added two more replicas. (of course, 20% is not a production use case, just to experiment)</p><blockquote>&gt; oc get hpa</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pSkVbjNnGghb8OfFUl9UlQ.png" /></figure><p>Major Observations:</p><ul><li>Any vmirs after deployment, need to be exposed using virtctl to make use of an instance (this helps in considering all replicas as a single entity). Hostname of VMs will be services(vmirs exposed as a service)</li><li>Validated OS images such as cirros, fedora, centos7, centos8 images and application customized image as well (so far tested on linux based images, windows: image size would be a challenge)</li><li>In case if data volume to be used for VMIRS, then it is possible with only one replica. As data volume involved will get bound to VMI instance. Mostly this is not viable and suggested to use.</li><li>VMIRS helps in high availability even in case of node failover. When the worker node status is “not ready” (Host down), respective VMI would be recreated in another available node as per replica configuration.</li><li>Data/Configuration can be passed to application in VM using cloudInit or ConfigMap during VM creation.</li><li>VM ReplicaSet are easy to scale, same as Pod replicaset, but no rolling updates supported.</li></ul><p><strong>Summary</strong></p><p><em>Indeed, still the VMIRS goes more into the direction of a Deployment, whereas the VM goes more into the direction of a StatefulSet with replica 1.</em></p><p><em>While more focused on high availability for Virtual Machine Instances, vmirs are suitable and of course only if we are not concerned about state of disk after a VM termination.</em></p><p><strong>References</strong></p><p><a href="https://docs.openshift.com/container-platform/4.5/virt/virtual_machines/virtual_disks/virt-using-container-disks-with-vms.html">https://docs.openshift.com/container-platform/4.5/virt/virtual_machines/virtual_disks/virt-using-container-disks-with-vms.html</a></p><p><a href="https://cloud.centos.org/centos/8/x86_64/images/CentOS-8-GenericCloud-8.4.2105-20210603.0.x86_64.qcow2">https://cloud.centos.org/centos/8/x86_64/images/CentOS-8-GenericCloud-8.4.2105-20210603.0.x86_64.qcow2</a></p><p><a href="https://kubevirt.io/user-guide/virtual_machines/replicaset/">https://kubevirt.io/user-guide/virtual_machines/replicaset/</a></p><p><a href="https://github.com/kubevirt/kubevirt/issues/1527">https://github.com/kubevirt/kubevirt/issues/1527</a></p><p><a href="https://medium.com/avmconsulting-blog/replication-controller-replica-sets-in-kubernetes-820f3cec7170">Replication Controller &amp; Replica sets in Kubernetes</a></p><p>Disclaimer: Views expressed are my own and personal ones.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=821de67eabef" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>