<?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 Mrinal Ravi on Medium]]></title>
        <description><![CDATA[Stories by Mrinal Ravi on Medium]]></description>
        <link>https://medium.com/@mrinalraviponnambath?source=rss-44787daa8c09------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Xk1xSo_RfKA-FdGu5AtNGg.jpeg</url>
            <title>Stories by Mrinal Ravi on Medium</title>
            <link>https://medium.com/@mrinalraviponnambath?source=rss-44787daa8c09------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 15:47:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mrinalraviponnambath/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[A Fun, Hands-On Guide to Running Your Own GitHub Actions Runners on EKS]]></title>
            <link>https://medium.com/@mrinalraviponnambath/a-fun-hands-on-guide-to-running-your-own-github-actions-runners-on-eks-710f6db2b3c6?source=rss-44787daa8c09------2</link>
            <guid isPermaLink="false">https://medium.com/p/710f6db2b3c6</guid>
            <category><![CDATA[autoscaling]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[github-actions]]></category>
            <dc:creator><![CDATA[Mrinal Ravi]]></dc:creator>
            <pubDate>Fri, 14 Aug 2026 10:48:39 GMT</pubDate>
            <atom:updated>2026-08-17T06:31:22.232Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’ve ever watched a GitHub Actions job sit in “Queued” for ten minutes because every hosted runner in the universe is busy running someone else’s npm install, this post is for you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nt2Dele-46xcGihe-EWwUQ.png" /><figcaption>image</figcaption></figure><p>We’re going to build <strong>self-hosted, auto-scaling GitHub Actions runners</strong> on <strong>Amazon EKS</strong>, using something called <strong>ARC</strong> — the Actions Runner Controller. Think of it as swapping GitHub’s shared food truck for your own kitchen. Same menu (your workflows), but now you control the stove, the staff, and how many chefs show up when the dinner rush hits.</p><p>No prior Kubernetes wizardry required — just enough curiosity and a working kubectl.</p><h3>First, What Problem Are We Even Solving?</h3><p>GitHub-hosted runners are great until:</p><ul><li>You need more CPU/RAM than the default runner gives you</li><li>You need access to something inside your private network (a database, an internal API)</li><li>You’re burning through Actions minutes like a teenager with a new data plan</li><li>You just want control — custom images, caching, GPUs, whatever</li></ul><p>The fix: run your <strong>own</strong> runners, inside your <strong>own</strong> Kubernetes cluster, and let them scale up and down automatically as jobs come and go. That’s exactly what ARC does.</p><h3>Meet ARC: Your Restaurant, Not Your Food Truck</h3><p>Here’s the analogy that makes this whole thing click.</p><p>Imagine GitHub Actions is a restaurant chain, and every workflow run is a customer walking in hungry for a meal (a job to run).</p><ul><li><strong>The Controller</strong> is the restaurant manager. It doesn’t cook anything itself — it just watches the door and makes sure enough staff are on shift.</li><li><strong>The Listener</strong> is the host at the front desk. It’s the one actually calling GitHub every few seconds asking, “Hey, any customers waiting?”</li><li><strong>The Runner Scale Set</strong> is the pool of chefs (pods) that get called in from the back room the moment there’s a ticket to cook. Zero customers, zero chefs on the clock. Ten customers at once, ten chefs get pulled in. Nobody’s paid to stand around.</li></ul><p>That’s the whole magic trick: <strong>scale to zero when idle, scale up when busy</strong> — instead of paying for a kitchen full of chefs 24/7 (which is basically what a fleet of always-on self-hosted runners looks like).</p><h3>What You’ll Need Before We Start</h3><p>Think of this as the shopping list before you start cooking:</p><ul><li>An <strong>EKS cluster</strong> already up and running (any recent version works fine)</li><li>kubectl and helm installed and pointed at that cluster</li><li>A <strong>GitHub App</strong> (we’ll create this together — it’s how ARC proves its identity to GitHub, like a staff badge instead of shouting your password at the door)</li><li>Enough node capacity in EKS for your runner pods to actually land somewhere (a managed node group or Karpenter both work great)</li></ul><p>That’s it. No cert-manager, no webhooks to babysit — the current version of ARC keeps things refreshingly simple.</p><h3>Step 1: Install the Controller (Hire the Manager)</h3><p>The controller is a single Helm install, and it lives in its own little office (arc-systems namespace) separate from where your actual runners will work.</p><pre>NAMESPACE=&quot;arc-systems&quot;</pre><pre>helm install arc \<br>  --namespace &quot;${NAMESPACE}&quot; \<br>  --create-namespace \<br>  oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set-controller</pre><p>Check that the manager showed up for work:</p><pre>kubectl get pods -n arc-systems</pre><p>You should see something like:</p><pre>NAME                                              READY   STATUS    RESTARTS   AGE<br>arc-gha-runner-scale-set-controller-594cdc976f-m7cjs   1/1     Running   0          64s</pre><p>One pod, chilling, waiting for instructions. Manager’s on the clock.</p><h3>Step 2: Create a GitHub App (Get a Staff Badge, Not a Password)</h3><p>You <em>could</em> authenticate ARC with a personal access token, but that’s like handing the restaurant your personal debit card. A <strong>GitHub App</strong> is the professional move — scoped permissions, its own identity, easy to rotate.</p><ol><li>Go to Settings → Developer settings → GitHub Apps → New GitHub App</li><li>Give it repo/org permissions for Actions (read &amp; write) and Administration</li><li>Install the app on your org or the specific repo you want it managing</li><li>Grab three things: <strong>App ID</strong>, <strong>Installation ID</strong>, and download the <strong>private key</strong> (.pem file)</li></ol><p>Now turn those into a Kubernetes Secret, so the badge lives safely inside the cluster instead of floating around in a Slack message:</p><pre>kubectl create namespace arc-runners</pre><pre>kubectl create secret generic github-app-secret \<br>  -n arc-runners \<br>  --from-literal=github_app_id=123456 \<br>  --from-literal=github_app_installation_id=12345678 \<br>  --from-file=github_app_private_key=path/to/your-key.pem</pre><h3>Step 3: Deploy the Runner Scale Set (Open the Kitchen)</h3><p>This is the pool of chefs — the actual pods that will pick up jobs and run them.</p><pre>helm install repo-runners \<br>  --namespace arc-runners \<br>  --set githubConfigUrl=&quot;https://github.com/your-org/your-repo&quot; \<br>  --set githubConfigSecret=github-app-secret \<br>  oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set</pre><p>Swap your-org/your-repo for wherever you want this scale set attached — it works at the repo, org, or enterprise level.</p><p>Check the host showed up:</p><pre>kubectl get pods -n arc-runners</pre><p>You’ll see a <strong>listener pod</strong> — that’s the host standing at the front desk, long-polling GitHub and asking “any tickets for me?” No chefs yet, because no customers have walked in. That’s expected and exactly what we want.</p><h3>Step 4: Point a Workflow at Your New Kitchen</h3><p>In any workflow file, swap the usual ubuntu-latest for the name of your runner scale set (this is the Helm release name you used above — repo-runners):</p><pre>name: hello-arc<br>on: [push]</pre><pre>jobs:<br>  say-hi:<br>    runs-on: repo-runners<br>    steps:<br>      - uses: actions/checkout@v4<br>      - run: echo &quot;Cooked by our own kitchen 🍳&quot;</pre><p>Push that, watch the Actions tab, and then peek at your cluster:</p><pre>kubectl get pods -n arc-runners --watch</pre><p>You’ll see a runner pod spin up out of nowhere the instant the job is queued, do its work, and then vanish. That’s your chef showing up, cooking one dish, and clocking out — no idle staff, no wasted spend.</p><h3>Making It Actually Production-Ready on EKS</h3><p>The demo above works, but a few EKS-specific touches turn this from “cool experiment” into “thing I trust on a Friday afternoon”:</p><p><strong>Give the kitchen somewhere to expand.</strong> Runner pods need nodes to land on. Whether you’re using a managed node group with cluster autoscaler or Karpenter, make sure it can react fast — Karpenter tends to feel like a kitchen that can conjure a new stove in under a minute, which matters when fifty PRs land at once.</p><p><strong>Use spot instances where you can stomach interruptions.</strong> Runner pods are ephemeral by design — they run one job and disappear — which makes them a great match for spot capacity. Cheaper chefs, same food, occasional short notice to leave.</p><p><strong>Set sane resource requests/limits</strong> in your values.yaml for the runner scale set, so one greedy build doesn&#39;t starve its neighbors on the same node.</p><p><strong>Give runners real network access.</strong> They need to reach GitHub over HTTPS, and possibly your internal services (a private npm registry, internal APIs). Get your security groups and egress rules sorted before you’re debugging a job that “just hangs” for no visible reason.</p><p><strong>Watch the listener pod like a hawk.</strong> If it’s not “Running,” nothing will ever scale — no host at the door means no customers ever get seated, no matter how many chefs are in the back.</p><h3>The Troubleshooting Corner (Things That Will Definitely Happen)</h3><p><strong>Jobs stuck in “Queued” forever.</strong> Nine times out of ten this is the listener pod: either it can’t authenticate (bad App ID/Installation ID/key), or there’s genuinely no node capacity for a new runner pod to land on. Check kubectl get pods -n arc-runners and kubectl logs on the listener before you assume GitHub is having a bad day.</p><p><strong>Upgrading ARC feels weirdly clunky.</strong> That’s not a bug in your setup, it’s just how ARC works today: Helm won’t upgrade or delete the underlying CRDs for you. If you’re jumping versions, plan for uninstalling the runner scale sets, uninstalling the controller, cleaning up the CRDs, then reinstalling fresh — rather than a casual helm upgrade and hoping for the best.</p><p><strong>Runner pods immediately crash after a version bump.</strong> Treat controller and runner-scale-set chart versions as a matched pair, not mix-and-match parts. Bumping one without the other is like swapping the head chef for someone trained on a completely different menu — the kitchen still runs, technically, right up until it very much doesn’t.</p><h3>Wrapping Up</h3><p>That’s the whole recipe: a controller to manage things, a listener to greet incoming jobs, and a scale set of runners that show up only when there’s actual work to do. Once it’s wired up, your builds stop competing for shared, hosted capacity, and start running on infrastructure that scales to exactly what you need — no more, no less.</p><p>From here, the fun part is tuning it: min/max replicas, node pools, custom runner images with your own tooling baked in. But the core loop — customer walks in, chef gets called, chef goes home — stays exactly this simple no matter how big the kitchen gets.</p><p>Happy scaling! 🍽️</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=710f6db2b3c6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Built a WhatsApp Bot to Manage My AWS Resources (And Save My Wallet)]]></title>
            <link>https://medium.com/@mrinalraviponnambath/how-i-built-a-whatsapp-bot-to-stop-my-aws-resources-and-save-my-wallet-05d83df1cf4c?source=rss-44787daa8c09------2</link>
            <guid isPermaLink="false">https://medium.com/p/05d83df1cf4c</guid>
            <category><![CDATA[whatsapp]]></category>
            <category><![CDATA[cloud-cost-optimization]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Mrinal Ravi]]></dc:creator>
            <pubDate>Sat, 28 Feb 2026 13:27:21 GMT</pubDate>
            <atom:updated>2026-03-01T15:04:36.292Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve always had this problem. I spin up a few EC2 instances for testing something, get distracted, and completely forget about them. Then a week later, AWS sends me that budget alert email and I’m like “wait, what’s <br> running?”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jus6L6uq-6ysWJAtdyTWWg.jpeg" /></figure><p>The worst part? Sometimes I get these emails when I’m out — on my phone, nowhere near my laptop. And my instances are just sitting there, burning cash, and I can’t do anything about it. <br> <br><strong> So I built this</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-fjjEHx72bhqiaVLPxr8Dg.png" /><figcaption>overview</figcaption></figure><p>Now I can just text “<em>shutdown dev</em>” to a WhatsApp number and that’s it — all my dev instances are stopped. From my phone. While I’m at movies, standing in a grocery store queue or nowhere near my laptop.</p><p>Life changing? Maybe not. But my wallet appreciates it.</p><h4>The Idea</h4><p>The logic is simple: <strong>WhatsApp Message</strong> → <strong>Twilio</strong> → <strong>API Gateway</strong> → <strong>AWS Lambda</strong> → <strong>EC2 Stop/Start</strong></p><ul><li><strong>Security First:</strong> It only responds to <em>my</em> phone number.</li><li><strong>Safety Rails:</strong> It only touches instances I’ve specifically tagged (no accidental production nuking).</li><li><strong>Serverless:</strong> No infrastructure to manage. It just sits there, free, until I need it.</li></ul><h4>What You’ll Need</h4><ul><li>An <strong>AWS Account</strong> (Free tier is fine).</li><li>A <strong>Twilio Account</strong> (The free sandbox works perfectly).</li><li><strong>30 Minutes</strong> of focus.</li><li><strong>EC2 Instances</strong> you keep forgetting to turn off.</li><li>That’s it. No fancy infrastructure. No servers to manage. Just a Lambda function that listens for my texts.</li></ul><h4><strong>Step 1: Tag Your Instances</strong></h4><p>First, decide which instances you want to control.</p><blockquote>I tagged three dummy instances with Environment=Dev. If they don’t have this tag, the bot won’t even see them.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mnOpeazYrv2_S2HmXf-06g.png" /></figure><h4>Step 2: Setting up the Twilio &quot;Remote&quot;</h4><p>Head to <a href="https://twilio.com/">Twilio</a>, grab an account, and find the <strong>WhatsApp Sandbox</strong>.</p><ol><li>Twilio gives you a sandbox number and a &quot;join code&quot;</li><li>Send that code from your phone to the number.</li><li><em>Boom.</em> Your phone is now linked to your Twilio backend.</li><li>Copy your <strong>Account SID</strong> and <strong>Auth Token</strong>—we’ll need these for the Lambda environment variables.</li></ol><h4>Step 3: Rest in your AWS account</h4><p>The heavy lifting happens in a Python Lambda function. It parses the text message, checks the phone number, and sends the command to AWS.</p><blockquote><strong><em>Pro Tip:</em></strong><em> I’ve dropped the full deployment steps and the Python script in my GitHub repo: </em><a href="https://github.com/mrinalpravi/whatsapp-aws-control"><em>whatsapp-aws-control</em></a></blockquote><h4>Step 4: Let’s Test it</h4><p>Once it’s deployed, you can text “help” to see the menu:</p><ul><li>help — To see the menu</li><li>shutdown dev — Stops all &quot;Dev&quot; instances.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hk7W70xYnP5CSOkvYq760Q.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SVg92zetnydDU9b4zXpLZQ.png" /></figure><ul><li>start dev — Boots them back up.</li><li>status — Tells you what’s currently running.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v2qMPHVRYy-tYqryAmNccw.jpeg" /></figure><h4>What’s Next?</h4><p>I’m already thinking about what next</p><ul><li><strong>RDS Support:</strong> Because those databases are way more expensive than EC2.</li><li><strong>The “Nuke” Command:</strong> One text to stop <em>everything</em> across all regions.</li><li><strong>Auto-Reminders:</strong> If an instance has been running for 8 hours, the bot texts <em>me</em> to ask if I’m done.</li></ul><p><strong>Check out the code on GitHub: </strong><a href="https://github.com/mrinalpravi/whatsapp-aws-control">whatsapp-aws-control</a></p><p>Clone it, deploy it, and stop paying AWS for your own forgetfulness</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=05d83df1cf4c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kubernetes Costs with OpenCost]]></title>
            <link>https://medium.com/@mrinalraviponnambath/kubernetes-costs-with-opencost-829027dd79f6?source=rss-44787daa8c09------2</link>
            <guid isPermaLink="false">https://medium.com/p/829027dd79f6</guid>
            <category><![CDATA[cncf]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[opencost]]></category>
            <dc:creator><![CDATA[Mrinal Ravi]]></dc:creator>
            <pubDate>Sun, 27 Jul 2025 16:37:49 GMT</pubDate>
            <atom:updated>2025-07-27T16:37:49.305Z</atom:updated>
            <content:encoded><![CDATA[<p>A Step-by-Step Guide to Setting Up OpenCost in Your Kubernetes Cluster</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rrVqQtBIjGWDh7vq.png" /><figcaption>opencost</figcaption></figure><h4>What is OpenCost?</h4><p>OpenCost is a <strong>vendor-neutral</strong>, <strong>open source</strong> CNCF project that helps you <strong>measure, allocate, and monitor Kubernetes and cloud infrastructure costs in real time</strong>.</p><p><em>Accepted by the CNCF on June 17, 2022, promoted to Incubating level on October 25, 2024.</em></p><p>OpenCost is designed to work seamlessly across multiple environments — including <strong>AWS</strong>, <strong>Azure</strong>, <strong>GCP</strong>, <strong>on-prem</strong>, and even <strong>Docker-only</strong> setups (with limited functionality).</p><h4><strong>Requirements</strong>:</h4><ul><li>Kubernetes Cluster (kubectl, helm)</li><li>Prometheus</li></ul><p>In this demo, I’m working with an AWS EKS cluster. However, OpenCost is a <strong>cloud-agnostic</strong> solution, meaning it can be deployed across all major cloud platforms — including Azure, GCP or even in on-premises environments.</p><h4>Installing Prometheus</h4><p>Prometheus is a prerequisite for OpenCost installation. OpenCost requires Prometheus for scraping metrics and data storage. For the installation of Prometheus</p><p><em>⚠️ You might encounter a few issues while installing Prometheus in the cluster — these are not related to </em><strong><em>OpenCost</em></strong><em> itself. However, I’ve included a detailed troubleshooting section to help you identify and resolve them</em></p><pre>helm install prometheus --repo https://prometheus-community.github.io/helm-charts prometheus \<br>  --namespace prometheus-system --create-namespace \<br>  --set prometheus-pushgateway.enabled=false \<br>  --set alertmanager.enabled=false \<br>  -f https://raw.githubusercontent.com/opencost/opencost/develop/kubernetes/prometheus/extraScrapeConfigs.yaml</pre><p>This will install Prometheus in the prometheus-system namespace with default settings for use with OpenCost.</p><p>Lets see the pods in prometheus-system namespace</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/933/1*keF7_uXSmllc2yKA0gz_fQ.png" /></figure><p>If your prometheus-server pod isn’t in a <strong>Running</strong> state, don’t panic — you&#39;re not alone!</p><blockquote>“If everything works perfectly the first time, you don’t learn anything. Let’s troubleshoot!”</blockquote><p>Describe the prometheus-server pod and check for events</p><pre>Events:<br>  Type     Reason            Age   From               Message<br>  ----     ------            ----  ----               -------<br>  Warning  FailedScheduling  57s   default-scheduler  0/2 nodes are available: pod has unbound immediate PersistentVolumeClaims. <br>preemption: 0/2 nodes are available: 2 Preemption is not helpful for scheduling.</pre><p>Okay, now let’s see PersistentVolumeClaims</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ziE7B8eU-rEntlmgVGj4bw.png" /></figure><p>In my case, the issue was with <strong>PersistentVolumeClaims (PVCs)</strong> being stuck in the <strong>Pending</strong> state. So lets describe the pvc and get the events</p><pre>Events:<br>  Type    Reason         Age                   From                         Message<br>  ----    ------         ----                  ----                         -------<br>  Normal  FailedBinding  69s (x26 over 7m10s)  persistentvolume-controller  no persistent volumes available for this claim and no storage class is set</pre><p>You’ll likely find that the PVC can’t bind due to the default <strong>StorageClass</strong> not being set.</p><p>Let’s check available storageclass</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jc9KJlMOWSlrutkKakHT7Q.png" /></figure><p>For more details let’s describe the resource, you see here its not set as default class.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/1*GpRx3bYGp2jkTx-1CWtidQ.png" /></figure><p>Now lets edit the storage class using the simple patch command</p><pre>kubectl patch storageclass gp2 -p &#39;{&quot;metadata&quot;: {&quot;annotations&quot;:{&quot;storageclass.kubernetes.io/is-default-class&quot;:&quot;true&quot;}}}&#39;</pre><p>Lets see again</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*jvoymSuaCcRVXgp1ISWwPw.png" /></figure><p>Once the PVC binds, the Prometheus pod should move to the <strong>Running</strong> state.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*qnBj5a9WeVniOGyORzrbkw.png" /></figure><p>Now we are all set to install opencost 🚀</p><h4>Installing opencost</h4><p>With Prometheus ready, we can now install OpenCost using Helm:</p><pre>helm install opencost opencost-charts/opencost --namespace opencost --create-namespace</pre><p>After a few moments, confirm the opencost pod is running in opencost namespace</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/1*4MUagIK6dLl9DbxWC2y9sA.png" /><figcaption>All set!!!</figcaption></figure><h4>Accessing the OpenCost UI</h4><p><strong>Option 1: Port Forwarding (Local Access)</strong></p><pre>kubectl port-forward --namespace opencost service/opencost 9003:9090</pre><p>Then open <a href="http://localhost:9003/">http://localhost:9003</a> in your browser.</p><p><strong>Option 2: LoadBalancer (Public Access)</strong></p><p>Since my test workloads are running in EKS cluster, I wanted to expose OpenCost externally without a separate ingress controller. So, I edited the service to type LoadBalancer using a kubectl patch command:</p><pre>kubectl patch svc opencost -n opencost -p &#39;{&quot;spec&quot;: {&quot;type&quot;: &quot;LoadBalancer&quot;}}&#39;</pre><p>Now access the OpenCost dashboard at http://&lt;external-ip&gt;:port</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9tkvfSmnbCeawSiXC7h-Cw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yc2Lwf5acL8URgiyNaIlNA.png" /></figure><p>OpenCost enables granular visibility into where your cloud spend is going. It breaks down costs by <strong>deployment</strong>, <strong>pod</strong>, <strong>node</strong>, <strong>service</strong>, <strong>namespace</strong>, and even <strong>custom Kubernetes labels</strong>. This level of detail is essential for teams practicing FinOps or managing multi-tenant clusters, as it helps track usage, optimize workloads, and hold teams accountable for their resource consumption.</p><h4>Conclusion</h4><p>OpenCost brings <strong>transparency and accountability</strong> to Kubernetes spending. Whether you’re a platform engineer, SRE, or finance-aware developer, OpenCost helps you:</p><ul><li>Allocate costs by namespace, label, or deployment</li><li>Understand infrastructure usage patterns</li><li>Avoid unexpected cloud bills</li><li>Make smarter provisioning decisions</li></ul><p>And best of all — it’s <strong>free, open source, and CNCF-backed</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=829027dd79f6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cloud Governance Made Simple with Cloud Custodian]]></title>
            <link>https://medium.com/@mrinalraviponnambath/cloud-governance-made-simple-with-cloud-custodian-6d72184acddd?source=rss-44787daa8c09------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d72184acddd</guid>
            <category><![CDATA[cncf]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-custodian]]></category>
            <category><![CDATA[cloud-governance]]></category>
            <dc:creator><![CDATA[Mrinal Ravi]]></dc:creator>
            <pubDate>Sun, 01 Dec 2024 12:03:52 GMT</pubDate>
            <atom:updated>2024-12-01T12:03:52.069Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://cloudcustodian.io/"><strong>Cloud Custodian</strong></a><strong> (c7n) -</strong> a <a href="https://www.cncf.io/projects/cloud-custodian/">CNCF project</a>, helps you to define and enforce policies for cloud resources with ease. Whether you’re managing AWS, Azure, or GCP, Cloud Custodian has got you covered!</p><p><strong>c7n</strong> joined the CNCF as a Sandbox project on June 25, 2020, and advanced to the Incubating maturity level on September 14, 2022</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/647/0*sEwTiDRd3gMDV-mk.png" /></figure><h4>What Exactly is Cloud Custodian?</h4><p>Imagine you’re running a huge cloud environment with hundreds of resources — instances, databases, buckets, and more. Each has its own requirements: some need to be tagged properly, others must comply with security standards, and idle resources need to be turned off to save costs.</p><p>Instead of managing these manually or maintaining multiple scripts, <strong>Cloud Custodian</strong> (<strong>c7n)</strong> acts like your cloud rulebook. It’s a tool that lets you <strong>define rules (policies)</strong> for your resources, ensuring they behave exactly how you need — secure, compliant, and cost-efficient.</p><h4>What Can You Do with Cloud Custodian?</h4><p>Here are some real world use cases c7n:</p><ul><li><strong>Cost Control</strong>: Automatically stop or delete unused cloud resources.</li><li><strong>Security Compliance</strong>: Enforce encryption and access policies.</li><li><strong>Tag Management</strong>: Ensure resources are properly tagged (e.g., for cost allocation or team ownership).</li><li><strong>Automated Cleanup</strong>: Remove public access to storage buckets or cross-account access on resources.</li></ul><h4>How Does Cloud Custodian Work?</h4><p>Custodian uses <strong>YAML files</strong> to define policies. These policies include:</p><ol><li><strong>Resource Type</strong>: What resource the policy applies to (e.g., EC2, S3, PubSub Topic).</li><li><strong>Filters</strong>: Conditions to identify specific resources (e.g., untagged instances or open buckets).</li><li><strong>Actions</strong>: What to do with those resources (e.g., stop, delete, tag).</li></ol><p>You can run these policies:</p><ul><li><strong>In Real-Time</strong>: Using serverless capabilities of AWS Lambda, Azure Functions, or Google Cloud Functions.</li><li><strong>Scheduled</strong>: Set up as a cron job for periodic checks.</li><li><strong>During Development</strong>: As part of CI/CD pipelines to catch issues early.</li></ul><h4>Let’s see this in action!</h4><p>I have used my AWS account for this demo, but you can use any supported cloud provider. Note that the installation steps vary depending on the provider you choose.</p><p>See the installation steps <a href="https://cloudcustodian.io/docs/quickstart/index.html#install-cloud-custodian">here</a>.</p><blockquote>Step 1: Prerequisites</blockquote><ul><li><strong>AWS Access Key</strong>: Make sure you have AWS credentials configured.</li><li><strong>Install Cloud Custodian</strong>: If you haven’t installed it yet.</li></ul><pre>pip install c7n</pre><blockquote>Step 2: Write Your First Policy</blockquote><p>Create a file named custodian.yml with the following content:</p><pre>policies:<br>  - name: stop-unused-ec2-instances<br>    resource: aws.ec2<br>    filters:<br>      - &quot;tag:Environment&quot;: absent<br>    actions:<br>      - stop</pre><p>c7n will find instances that matching the filter (instances without having Environment tag) and stop them automatically.</p><p>I have launched 3 Instances in my AWS Account, out of 2 are tagged with Environment:dev, and remaining 1 instance not tagged with Environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nMeVf50NdlwPDXjFm_AhzQ.png" /></figure><blockquote>Step 3: Run the Policy</blockquote><p>Run the policy using the command:</p><pre>custodian run --output-dir=. custodian.yml</pre><p>If successful, you’ll see logs indicating that the matching EC2 instance will be stopped. Check your AWS console to confirm the instances are no longer running.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XKAPG3f5rYXakSRq4uXKhg.png" /></figure><p>Logs from terminal</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nRtScdlgZbdExdEuO-wDfA.png" /></figure><h4>Don’t stop here explore more!</h4><p>Checkout more AWS based policies <a href="https://cloudcustodian.io/docs/aws/examples/index.html">here</a>…</p><h4>Tips</h4><p><strong>Dry Run First</strong>: Use --dryrun to see what resources match your policies without taking any action.</p><p>custodian run --dryrun -s out custodian.yml</p><p><strong>Validate Your Policies</strong>: Ensure your policies are error-free:</p><p>custodian validate custodian.yml</p><h4>Conclusion</h4><p>Cloud Custodian helps you to automate cloud governance with straightforward, YAML-based policies. From stopping idle resources to enforcing security compliance, the possibilities are endless..</p><h4>References</h4><ul><li><a href="https://cloudcustodian.io/docs/index.html">Cloud Custodian Documentation - Cloud Custodian documentation</a></li><li><a href="https://www.cncf.io/projects/cloud-custodian/">Cloud Custodian</a></li><li><a href="https://github.com/cloud-custodian/cloud-custodian">GitHub - cloud-custodian/cloud-custodian: Rules engine for cloud security, cost optimization, and governance, DSL in yaml for policies to query, filter, and take actions on resources</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d72184acddd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Running Chaos Experiments in Kubernetes with Chaos Mesh: A Hands-on Guide]]></title>
            <link>https://medium.com/@mrinalraviponnambath/running-chaos-experiments-in-kubernetes-with-chaos-mesh-a-hands-on-guide-ed02db94b5df?source=rss-44787daa8c09------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed02db94b5df</guid>
            <category><![CDATA[chaos-engineering]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[chaos-mesh]]></category>
            <dc:creator><![CDATA[Mrinal Ravi]]></dc:creator>
            <pubDate>Sat, 19 Oct 2024 06:30:21 GMT</pubDate>
            <atom:updated>2024-10-19T06:30:21.651Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong>Introduction</strong></blockquote><p>Modern applications, especially those running on Kubernetes, are designed to be scalable and highly available. However, even the most resilient systems can fail. That’s where chaos engineering comes into play. Chaos testing involves deliberately injecting failures into a system to identify weaknesses before they cause significant outages in production.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*h3og-UzFF1khPjD9.png" /></figure><p>In this blog post, we will explore <strong>Chaos Mesh</strong>, a popular open-source chaos engineering tool that is Kubernetes-native, and walk you through how to get started with chaos testing in your Kubernetes cluster.</p><blockquote><strong>Why chaos testing is essential?</strong></blockquote><p><strong>Resilience Improvement</strong> : It helps identify weakness in systems by stimulating failures in a controlled environment, allowing teams to strengthen their applications against unexpected issues.<br><strong>Realistic Scenarios : </strong>By creating real world failure scenarios like network delay, pod failures, cpu/memory stress and more, they provide insights to how system behave under such situations.<br><strong>Automated Testing</strong> : It can automate chaos experiments, making it easier to integrate them into CI/CD pipelines and continues testing processes.<br><strong>Production Readiness</strong>: By purposefully breaking components and observing how the system behaves, teams can gain confidence in the system’s ability to handle failures gracefully, thereby ensuring better production reliability.<br><strong>Improve Incident Response</strong>: Running chaos experiments helps teams practice incident response and learn how their monitoring and alerting systems perform under stress.</p><blockquote><strong>Implementing Chaos Mesh</strong></blockquote><h4>Prerequisites</h4><p>Before we begin, ensure you have the following:</p><ul><li>A <strong>Kubernetes cluster</strong> (can be <a href="https://minikube.sigs.k8s.io/docs/start/?arch=%2Fmacos%2Farm64%2Fstable%2Fbinary+download">Minikube</a>, kind, or a Kubernetes cluster in any cloud providers).</li><li><a href="https://helm.sh/docs/intro/install/"><strong>Helm</strong></a> installed on your local machine.</li></ul><h4>Step 1: Installing Chaos Mesh</h4><p>To simplify the installation process, lets install chaos mesh via <a href="https://helm.sh/">helm</a></p><pre>#Adding Chaos Mesh repository to the Helm repository<br>helm repo add chaos-mesh https://charts.chaos-mesh.org<br><br>#Installing Chaos Mesh under the chaos-mesh namespace<br>helm install chaos-mesh chaos-mesh/chaos-mesh --namespace chaos-mesh --create-namespace</pre><p>To check the running status of Chaos Mesh, execute:</p><pre>kubectl get pods -n chaos-mesh</pre><p>In few seconds you would see couple of pods chaos-controller-manager, chaos-daemon, and chaos-dashboard running.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H1aa-n9r6EFUhFHLbTZUnw.png" /><figcaption>Chaos pods running</figcaption></figure><p>Once all the pods are in running state, you are good to run Chaos experiments to experience the features of Chaos Mesh.</p><h4>Step 2: Accessing the Chaos Mesh Dashboard</h4><p>Chaos Mesh provides a user-friendly web dashboard that allows you to visualise and control chaos experiments.</p><p><strong>Port-forward the dashboard</strong>: You can access the dashboard by running the following command to forward the port to your local machine. (Keep this running in another terminal tab)</p><pre>kubectl port-forward -n chaos-testing svc/chaos-dashboard 2333:2333</pre><p><strong>Open the Dashboard</strong>: Open your browser and go to http://localhost:2333. You should see the Chaos Mesh dashboard interface.</p><p>Once you set up the token (steps will be provided when you open the above url) you will be able to see the dashboard like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E1qxxoUlE71FLAVdhc5uig.png" /></figure><h4>Step 3: Running Your First Chaos Experiment</h4><p>Now the Chaos Mesh is installed and running, let’s create a simple chaos experiment to simulate a <strong>pod failure</strong> in the Kubernetes cluster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*D5J33W7zVyADMfmb.jpg" /></figure><p><strong>Deploy a Sample Application</strong>: First, deploy a sample nginx application in the default namespace to test with</p><pre>kubectl create deployment nginx --image=nginx --replicas=8</pre><p>Verify that the nginx pods are up and running, we can see 8 nginx pods running in the default namespace</p><pre>kubectl get pods</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wtl-zUrwJ1IElvssYDAcfw.png" /><figcaption>nginx pods running</figcaption></figure><p><strong>Create a Chaos Experiment (Pod Kill)</strong>: We will now create a chaos experiment that randomly kills the specified percentage of the Nginx pods. You can either use the Chaos Mesh dashboard to do this or create the experiment using a YAML file.</p><p>Here’s how to create a <strong>PodChaos</strong> experiment using YAML:</p><pre>apiVersion: chaos-mesh.org/v1alpha1<br>kind: PodChaos<br>metadata:<br>  name: nginx-pod-kill<br>  namespace: chaos-mesh<br>spec:<br>  action: pod-kill<br>  mode: fixed-percent<br>  value: &#39;50&#39;<br>  selector:<br>    namespaces:<br>      - default<br>    labelSelectors:<br>      app: nginx</pre><p><strong>Explanation</strong>:</p><ul><li><strong>mode: fixed-percent</strong>: This mode allows you to target a specific percentage of pods.</li><li><strong>value: ‘50’</strong>: This specifies that 50% of the eligible pods (in this case, Nginx pods) should be killed.</li><li><strong>action: pod-kill</strong>: The action to kill the pods, which will then be automatically restarted by Kubernetes.</li><li><strong>selector:</strong> This configuration will target <strong>all Nginx pods</strong> that are running in the default namespace. So, when the chaos experiment is applied, only pods in the default namespace that have the app=nginx label will be killed (and restarted by Kubernetes)</li></ul><p>Save this YAML as nginx-pod-kill.yaml and apply it to your cluster:</p><pre>kubectl apply -f nginx-pod-kill.yaml</pre><p><strong>Monitor the Experiment</strong>: After applying the experiment, check the nginx pods to see the effects</p><pre>kubectl get pods</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I6VgJBZTUYr2H3etR8Q-hg.png" /></figure><p>You will notice that 50% of nginx pod is killed periodically and then recreated by the Kubernetes scheduler.</p><p>Can monitor and manage this from chaos dashboard as well at <a href="http://localhost:2333/">http://localhost:2333</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rhs2cXMr0jf8eQVVSI5yUw.png" /></figure><p>Since this is just a simple experiment, in-depth analysis may not be necessary. However, on a larger scale, you can monitor the system’s behavior more closely by:</p><ul><li><strong>Monitoring</strong>: Utilize tools like Prometheus, Grafana, or Datadog to track the system’s performance and how it handles pod failures in real time.</li><li><strong>Logs</strong>: Review the application and service logs for any errors or unexpected behavior during the chaos experiment.</li><li><strong>System Behavior</strong>: Examine the impact on overall system availability, latency, and user experience, observing how the experiment affects these critical factors.</li></ul><h4>Step 4: Stopping the Chaos Experiment</h4><p>Once you’re done, you can stop the chaos experiment by deleting it:</p><pre>kubectl delete -f nginx-pod-kill.yaml</pre><p>Alternatively, if you created the experiment using the Chaos Mesh dashboard, you can stop it from the UI by selecting the experiment and deleting it.</p><p><strong>Next Steps</strong>:</p><ul><li>Explore advanced chaos experiment scenarios with Chaos Mesh.</li><li>Integrate Chaos Mesh with CI/CD pipelines for continuous chaos testing.</li><li>Test more complex applications, including stateful apps and databases.</li></ul><blockquote><strong>Conclusion</strong></blockquote><p>Chaos engineering helps you build more resilient systems by proactively identifying and fixing issues before they cause outages. <strong>Chaos Mesh</strong> makes chaos testing in Kubernetes clusters straightforward and effective with its easy integration and wide range of chaos experiment types.</p><p>By following this hands-on guide, you’ve taken the first step toward implementing chaos testing in your Kubernetes environment. Now, it’s time to customise and extend these experiments to make your systems more fault-tolerant.</p><p>Happy chaos engineering!!</p><blockquote>References</blockquote><p><a href="https://chaos-mesh.org/docs/">Chaos Mesh Overview | Chaos Mesh</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed02db94b5df" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS Resource Provisioning using Crossplane]]></title>
            <link>https://medium.com/@mrinalraviponnambath/aws-resource-provisioning-using-crossplane-d2ea84b801fc?source=rss-44787daa8c09------2</link>
            <guid isPermaLink="false">https://medium.com/p/d2ea84b801fc</guid>
            <category><![CDATA[iac]]></category>
            <category><![CDATA[s3-bucket]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[crossplane]]></category>
            <dc:creator><![CDATA[Mrinal Ravi]]></dc:creator>
            <pubDate>Thu, 04 Apr 2024 07:25:33 GMT</pubDate>
            <atom:updated>2024-04-05T02:53:56.955Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>In the world of cloud computing, managing and provisioning cloud resources efficiently is essential for organisations. AWS (Amazon Web Services) stands out as one of the leading cloud service providers, offering a wide range of services for various business needs. However, provisioning and managing AWS resources can be complex and time-consuming, especially as infrastructures scale up.</p><p>Crossplane, an open-source Kubernetes add-on that enables declarative, Kubernetes-style API for managing infrastructure in multiple cloud service providers. In this hands-on guide, we’ll delve into how Crossplane helps in resource provisioning in AWS.</p><blockquote>There will be no costs associated with AWS for this exercise.</blockquote><h3>Understanding Crossplane</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*smU-q3WzLGktMeKB.png" /></figure><p><a href="https://docs.crossplane.io/">Crossplane</a> extends the Kubernetes API to manage infrastructure and services provided by cloud service providers, such as AWS, Azure, Google Cloud, and others. It follows the Infrastructure as Code (IaC) principle, allowing users to define desired infrastructure states using Kubernetes-style YAML manifests.</p><h3>Prerequisites</h3><p>Providing links for all prerequisites, please do complete the pre requisites to continue with this hands-on</p><p><a href="https://repost.aws/knowledge-center/create-and-activate-aws-account">AWS Account</a><br><a href="https://minikube.sigs.k8s.io/docs/start/">Minikube cluster or any Kubernetes cluster with at least 2 GB of RAM<br></a><a href="https://helm.sh/docs/intro/install/">Helm</a></p><h3>Crossplane In Action</h3><p><strong>Enable the Crossplane Helm Chart repository</strong></p><pre>helm repo add crossplane-stable https://charts.crossplane.io/stable<br>helm repo update</pre><p><strong>Install the Crossplane components using </strong><strong>helm install</strong></p><pre>helm install crossplane crossplane-stable/crossplane --namespace crossplane-system --create-namespace</pre><p>Crossplane and its related components will get installed on the crossplane-system namespace, verify its installation using</p><p>kubectl get pods -n crossplane-system</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KoYcJRkag4yKGBSjpXL-6g.png" /></figure><p><strong>Install AWS Provider</strong></p><p>Install the AWS S3 provider into the Kubernetes cluster with a Kubernetes configuration file (aws-provider.yaml)</p><pre>apiVersion: pkg.crossplane.io/v1<br>kind: Provider<br>metadata:<br>  name: provider-aws-s3<br>spec:<br>  package: xpkg.upbound.io/upbound/provider-aws-s3:v1.1.0</pre><p>Apply the above configuration file using kubectl apply -f aws-provider.yaml</p><p>The Crossplane Provider installs the Kubernetes <em>Custom Resource Definitions</em> (CRDs) representing AWS S3 services. These CRDs allow you to create AWS resources directly inside Kubernetes.</p><p>Verify the provider installed with kubectl get providers</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eTezSRSXr2D7GKrb0UBoTA.png" /></figure><p>The S3 Provider installs a second Provider, the upbound-provider-family-aws.<br>The family provider manages authentication to AWS across all AWS family Providers.</p><p><strong>Create a Kubernetes secret for AWS</strong></p><p>The provider requires credentials to create and manage AWS resources.<br>Providers use a Kubernetes <em>Secret</em> to connect the credentials to the provider.</p><p>Generate a Kubernetes <em>Secret</em> from your AWS key-pair and then configure the Provider to use it.</p><p>The <a href="https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html#cli-configure-quickstart-creds">AWS documentation</a> provides information on how to generate AWS Access keys.</p><p>Create a text file containing the AWS account aws_access_key_id and aws_secret_access_key. Save this text file as aws-credentials.txt</p><pre>[default]<br>aws_access_key_id = &lt;your access key id&gt;<br>aws_secret_access_key = &lt;your secret access key&gt;</pre><p>Create a Kubernetes secret with the AWS credentials</p><p>kubectl create secret generic aws-secret -n crossplane-system --from-file=creds=./aws-credentials.txt</p><p>View the secret with kubectl describe secret aws-secret -n crossplane-system</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z1cpm2g-DMnbsuC981RHNw.png" /></figure><p><strong>Create a ProviderConfig</strong></p><p>A ProviderConfig customises the settings of the AWS Provider. Apply the ProviderConfig with the Kubernetes configuration file (provider-config.yaml) using kubectl apply -f provider-config.yaml</p><pre>apiVersion: aws.upbound.io/v1beta1<br>kind: ProviderConfig<br>metadata:<br>  name: default<br>spec:<br>  credentials:<br>    source: Secret<br>    secretRef:<br>      namespace: crossplane-system<br>      name: aws-secret<br>      key: creds</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8Jy6VESO8LuSManjpA7lDw.png" /></figure><p>This attaches the AWS credentials, saved as a Kubernetes secret, as a secretRef.</p><p><strong>Creating S3 Bucket using Crossplane</strong></p><p>Apply the belowS3 Bucket Configwith the this Kubernetes configuration file (s3-bucket.yaml) using kubectl apply -f s3-bucket.yaml</p><blockquote>AWS S3 bucket names must be globally unique. To generate a unique name the example uses a random hash. Any unique name is acceptable.</blockquote><pre>apiVersion: s3.aws.upbound.io/v1beta1<br>kind: Bucket<br>metadata:<br>  name: mravi-crossplane-bucket<br>spec:<br>  forProvider:<br>    region: us-east-2<br>  providerConfigRef:<br>    name: default<br></pre><p>The apiVersion and kind are from the provider’s CRDs.<br> metadata.name value is the name of the created S3 bucket in AWS.<br>spec.forProvider.region tells AWS which AWS region to use when deploying resources.</p><p>Use kubectl get buckets to verify Crossplane created the bucket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YKHsuxjIBz1ybj-2fmHoQg.png" /></figure><p><strong>Verify from the AWS Console</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EAyZ2Jm0HOF4t-j347O8LQ.png" /></figure><h3>Magic lies here !!!</h3><p>Crossplane’s control planes have self-healing capability, allowing them to automatically rectify any instances of drift within the managed infrastructure.</p><p>For instance, if you accidently delete this S3 bucket directly from the AWS console, within moments, you would find the bucket reappear. This swift restoration occurs because the Crossplane control plane adeptly detects the deviation from the desired state and promptly takes action to recreate the bucket, ensuring the infrastructure remains aligned with the defined configuration.</p><p><strong>Delete the S3 Bucket</strong></p><p>Before shutting down your Kubernetes cluster, delete the S3 bucket just created.</p><p>Use kubectl delete bucket &lt;bucketname&gt; to remove the bucket.</p><h3>Conclusion</h3><p>Crossplane transforms cloud resource provisioning by introducing the ease of Kubernetes-style declarative API to infrastructure management. It streamlines the tasks of defining, provisioning, and managing resources across multiple cloud providers.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d2ea84b801fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>