<?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 Swinalwaghmare on Medium]]></title>
        <description><![CDATA[Stories by Swinalwaghmare on Medium]]></description>
        <link>https://medium.com/@swinalwaghmare?source=rss-a1649ba8fa67------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ZFm-ryYONEHz7cgA</url>
            <title>Stories by Swinalwaghmare on Medium</title>
            <link>https://medium.com/@swinalwaghmare?source=rss-a1649ba8fa67------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 07:46:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@swinalwaghmare/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[What is Crossplane? Kubernetes for Your Cloud Infrastructure]]></title>
            <link>https://swinalwaghmare.medium.com/what-is-crossplane-kubernetes-for-your-cloud-infrastructure-b5d7ad38ea6e?source=rss-a1649ba8fa67------2</link>
            <guid isPermaLink="false">https://medium.com/p/b5d7ad38ea6e</guid>
            <category><![CDATA[cloud-infrastructure]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[platform-engineering]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[Swinalwaghmare]]></dc:creator>
            <pubDate>Mon, 29 Jun 2026 05:23:55 GMT</pubDate>
            <atom:updated>2026-06-29T05:23:55.713Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ygTYjYr51AcswKo6M3rYJQ.png" /></figure><p>Crossplane is a control plane framework for platform engineering.</p><p>If you’ve been working with Kubernetes for a while, you’ve probably thought — <em>“I wish I could manage my cloud infrastructure the same way I manage my containers.”</em> That’s exactly what Crossplane does.</p><p>Let’s break it down from scratch.</p><p>Managing cloud infrastructure and Kubernetes workloads with two completely different tools is exhausting. Your app lives in Kubernetes, but your RDS database, S3 bucket, and Redis cluster live in Terraform — or worse, someone’s AWS console session from 6 months ago. Crossplane fixes this by bringing your entire infrastructure under the same Kubernetes-native workflow you already know.</p><h3>What is a Control Plane?</h3><p>As the opening statement suggests Crossplane is a control plan framework for platform engineering, so we need to understand what a control plane is.</p><p>A control plane is the part of a system that <strong>decides what should happen</strong> — it doesn’t do the actual work itself. It just tells other components what the desired state should be, and they make it happen.</p><p>Kubernetes is a great example of this:</p><ul><li><strong>Control Plane</strong> → API server, scheduler, controller manager</li><li><strong>Data Plane</strong> → Worker nodes where your containers actually run</li></ul><p>When you run:</p><pre>kubectl apply -f deployment.yaml</pre><p>You’re talking to the control plane. It reads your file, understands you want 3 replicas of your app, and instructs the worker nodes to make it happen. You declared <em>what</em> you want — Kubernetes figured out <em>how</em> to get there.</p><h3>So What Does Crossplane Do?</h3><p>Crossplane extends Kubernetes so it can manage <strong>cloud infrastructure</strong> — not just containers.</p><p>With Crossplane, Kubernetes can now manage:</p><ul><li>Your application (as always)</li><li>Your cloud resources — RDS databases, S3 buckets, Redis clusters, Kafka topics, you name it</li></ul><p>Instead of using Terraform or clicking around in the AWS console, you declare your infrastructure the same way you declare a Deployment — using YAML, through Kubernetes.</p><p>Here is how the pieces fit together:</p><figure><img alt="crossplane-architecture-diagram.png" src="https://cdn-images-1.medium.com/max/987/1*jQ8k2eAWXnqnClTI5r_OwA.png" /></figure><p>Every step happens inside Kubernetes. You never leave kubectl.</p><h3>The Key Value of Crossplane</h3><p>Here’s where it gets interesting.</p><p>Crossplane lets you create your <strong>own Kubernetes APIs</strong> — custom resources like Database, Redis, or Kafka — without having to write complex controller software from scratch.</p><p>Normally, if you want a custom resource in Kubernetes, you need to write a controller — a piece of software that watches for that resource and knows what to do with it. That’s a lot of Go code, a lot of complexity.</p><p>Crossplane handles all of that for you. You just define the logic, and Crossplane’s built-in reconciliation engine takes care of the rest.</p><h3><strong>A Day in the Life With Crossplane</strong></h3><p>Imagine a developer on your team needs a PostgreSQL database for a new microservice. Without Crossplane, they open a Jira ticket, the infra team provisions it in Terraform, outputs the connection string, someone manually creates a Kubernetes Secret — two teams, three tools, one week later.</p><p>With Crossplane, the developer just applies this:</p><pre>apiVersion: platform.example.com/v1<br>kind: Database<br>metadata:<br>  name: my-app-db<br>spec:<br>  size: small<br>  engine: postgres</pre><p>Crossplane reads it, talks to AWS, provisions the RDS instance, creates the Secret, and the developer is connected in minutes. One tool. One workflow.</p><h3>Crossplane’s Four Major Components</h3><p>Crossplane has four building blocks. You can use all four together or pick just the ones you need.</p><h4>1. Composition</h4><p>Composition is how you build your own custom APIs on top of Crossplane.</p><p>Say you want a custom resource called App. Whenever a developer creates an App, your control plane should automatically spin up a Kubernetes Deployment, a Service, and maybe an RDS instance.</p><p>Without Crossplane, you’d write a controller for this — and controllers are notoriously tricky to get right. With Crossplane, you instead write a small function whose only job is to <strong>transform an input</strong> (like an App resource) into the actual Kubernetes and cloud resources you want. Crossplane&#39;s engine handles the reconciliation — creating, updating, and deleting infrastructure as needed.</p><figure><img alt="crossplane-composition-diagram.png" src="https://cdn-images-1.medium.com/max/1024/1*O5OqUq-vc0QigALoj4pffg.png" /></figure><p>You focus on the <em>logic</em>. Crossplane handles the <em>machinery</em>.</p><h4>2. Managed Resources</h4><p>Managed Resources are <strong>ready-made Kubernetes custom resources</strong> that Crossplane ships with.</p><p>Each one extends Kubernetes to manage a specific external system. For example:</p><ul><li>There’s a Managed Resource for AWS RDS instances</li><li>One for GCP Cloud SQL</li><li>One for Azure Blob Storage</li><li>…and hundreds more</li></ul><p>This means you don’t have to write a controller to manage AWS or GCP resources — someone already did that work and packaged it as a Managed Resource. You just use it.</p><p>You can also combine Managed Resources with Composition to build higher-level custom APIs — like a Database API that abstracts away whether it&#39;s RDS or Cloud SQL underneath.</p><h4>3. Operations</h4><p>This one is a newer concept, and it solves a real pain point.</p><p>Here is the problem. Crossplane’s default mode is continuous reconciliation — it never stops watching. That is perfect for infrastructure that should always exist. But some tasks are one-time actions, not permanent resources.</p><p>Think about rotating a database password. You don’t want Crossplane to <em>continuously reconcile</em> a password rotation — that makes no sense. You want it to run once, confirm it worked, and stop. That is what Operations are for.</p><p>If Composition is like a Kubernetes Deployment — always running, always watching — then an Operation is like a Kubernetes Job. It starts, does its work, reports success or failure, and exits.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KiyhvfEWDRLpiXmcRL-KzA.png" /></figure><p>Think of an Operation like a Kubernetes Job. It runs, does its work, and finishes. Here’s what a password rotation pipeline might look like:</p><p>There are three types:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*h-c9C-8G45hfeK3n074eQA.png" /></figure><p>Type Behavior <strong>Operation</strong> Runs once <strong>Cron Operation</strong> Runs on a schedule (like a Kubernetes CronJob) <strong>Watch Operation</strong> Runs whenever something changes</p><h4>4. Package Manager</h4><p>When you first install Crossplane, it doesn’t know anything about AWS, Azure, or GCP. It’s just the core engine.</p><p>You extend it by installing <strong>packages</strong> — bundles of configuration or code that add new capabilities. Think of it like Helm charts for Kubernetes, or Docker images for containers. Instead of writing everything yourself, you install a package and you’re ready to go.</p><p>For example, installing the AWS provider package gives Crossplane everything it needs to start managing AWS resources.</p><h3>Crossplane vs Terraform — Which One?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*926R5if2OW0EG5k89iy1ZQ.png" /></figure><p>The honest answer — they’re not always competitors. Some teams use Terraform to provision the Kubernetes cluster itself, then use Crossplane for everything running inside it.</p><h3>Want to Try It?</h3><p>The fastest way to get started:</p><pre># Install Crossplane into your cluster<br>helm install crossplane crossplane-stable/crossplane \<br>  --namespace crossplane-system \<br>  --create-namespace</pre><p>From there, install an AWS or GCP provider package and you are managing cloud infrastructure from kubectl within minutes. The official docs at <a href="https://crossplane.io/">crossplane.io</a> have a solid getting-started guide worth bookmarking.</p><h3>Wrapping Up</h3><p>Crossplane is one of those tools that clicks once you see the full picture. It takes the Kubernetes model you already know — declarative configuration, reconciliation, custom resources — and extends it to manage your entire cloud infrastructure.</p><p>If your team is already living in Kubernetes, Crossplane is worth a serious look.</p><blockquote><strong>Your YAML already runs your apps. There’s no reason it can’t run your entire cloud too.</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b5d7ad38ea6e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Host Web Server On AWS EC2 (Simple Guide for Beginners)]]></title>
            <link>https://swinalwaghmare.medium.com/how-to-host-web-server-on-aws-ec2-simple-guide-for-beginners-989d75b22de9?source=rss-a1649ba8fa67------2</link>
            <guid isPermaLink="false">https://medium.com/p/989d75b22de9</guid>
            <category><![CDATA[aws-ec2]]></category>
            <category><![CDATA[apache]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[web-host]]></category>
            <category><![CDATA[html]]></category>
            <dc:creator><![CDATA[Swinalwaghmare]]></dc:creator>
            <pubDate>Fri, 08 Aug 2025 14:13:08 GMT</pubDate>
            <atom:updated>2025-08-08T14:13:08.666Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’ve ever wondered how websites are stored and shown on the internet, you’re about to find out. In this guide, we’ll set up our very own <strong>web server</strong> using <strong>AWS EC2</strong> — step by step, in a super simple way.</p><h3>What is a Web Server?</h3><p>The term <strong>web server</strong> can mean two things:</p><h4>1. Hardware (The Actual Computer)</h4><p>This is the physical machine where your website lives. It stores all your site’s files like:</p><ul><li>HTML documents</li><li>Images</li><li>CSS stylesheets</li><li>JavaScript files</li></ul><p>It’s connected to the internet so people can visit your site anytime.</p><h3>2. Software (The Brain of the Server)</h3><p>This is the program that understands:</p><ul><li><strong>URLs</strong> (like <a href="https://example.com)/">https://example.com)</a></li><li><strong>Protocols</strong> (like HTTP — the language your browser uses to talk to servers)</li></ul><p>The most common one is an <strong>HTTP server</strong>, which sends your site’s files to people’s browsers when they request them.</p><h3>How Does a Web Server Work?</h3><p>Here’s the simple version:</p><ol><li>You type a website address into your browser.</li><li>Your browser sends a request to the server: <em>“Hey, can I have this file?”</em></li><li>The server says:</li></ol><blockquote><em>“Sure! Here it is.”</em> (if it finds the file)<br>or <em>“Oops, 404 — not found!”</em> (if it doesn’t)</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RTOmwuhJwn2i30ZnQcUxUQ.png" /></figure><h3>Popular Types of Web Servers</h3><ul><li><strong>Apache</strong> (we’ll use this one today)</li><li><strong>Nginx</strong></li><li><strong>Microsoft IIS</strong></li><li><strong>LiteSpeed</strong></li><li><strong>Apache Tomcat</strong></li><li><strong>Node.js Web Server</strong></li><li><strong>Lighttpd</strong></li><li><strong>OpenLiteSpeed</strong></li><li><strong>Jigsaw Server</strong></li><li><strong>Sun Java System Web Server</strong></li></ul><h3>Create and Connect to an EC2 Instance</h3><h4>Step 1 — Launch an EC2 Instance</h4><ul><li>Go to the <strong>AWS Management Console</strong> and search for <strong>EC2</strong>.</li><li>Search for <strong>EC2</strong> and click <strong>Launch Instance</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LlhJV6ttYQjyAui88VIxWg.png" /></figure><ul><li>Give your instance a name — for example: Web-Server .</li><li><strong>Choose an AMI</strong> (Amazon Machine Image) — select Amazon-Linux .</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qnh7Gn0lF8UqQgvAk62ePA.png" /></figure><ul><li>Pick an <strong>Instance Type</strong> — t2.micro or `t3.micro is perfect for testing (and it’s free tier eligible).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TmnasI6Bx0v095TTB3I3ag.png" /></figure><ul><li>Under <strong>Network Settings</strong>, make sure Auto-assign Public IP is <strong>enabled</strong>.</li><li>Select your <strong>Security Group</strong> — you can use the default one for now.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u_Mi3ywAbi2A08ASeG_qug.png" /></figure><ul><li><strong>Storage</strong> — 8GB is enough for practice.</li><li>Click Launch Instance</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p7VTVSPrUBqQK59u8j7VGQ.png" /></figure><ul><li>Now our instance is running</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P-Hn6fn3icksfb2DoE8c2w.png" /></figure><h4>Step 2 — Allow Web Traffic (Port 80)</h4><p>Right now, your EC2 is closed to visitors. We need to open a “door” for HTTP traffic.</p><ul><li>In your EC2 dashboard, click on <strong>Security Group</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2_Fsoa3vVs779wSHbriXkw.png" /></figure><ul><li>Go to <strong>Inbound Rules → Edit inbound rules</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lnoFaFaMtyjLr6KftmVv6Q.png" /></figure><ul><li>Add a new rule: <br>- <strong>Type:</strong> HTTP<br>- <strong>Port:</strong> 80<br>- <strong>Source:</strong> Anywhere (0.0.0.0/0)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Uc_PNdHTlJ5kmXZFxEf5LQ.png" /></figure><ul><li>Save the rule.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4woYpdOpFomwsK8xdCOZ_w.png" /></figure><h4>Step 3 — Connect to Your EC2</h4><ul><li>In EC2, click <strong>Connect</strong> on your instance.</li><li>Choose <strong>EC2 Instance Connect</strong> and click <strong>Connect.</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5CiFyoxD6CZnXpPzUGXdVw.png" /></figure><ul><li>A terminal window will open — you are now inside your server! 🎉</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ikFZadvGXxC0VPojRWsz1g.png" /></figure><h3>Install and Host Apache Web Server</h3><ul><li>So we first gone switch to root-user</li></ul><pre>sudo su -</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/851/1*KOgwa0tB05yHAj-_DUjDrw.png" /></figure><ul><li>Now we are gonna download and install Apache web server inside our ec2.</li></ul><pre>yum install httpd -y</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/886/1*90cp033H9I35STRl4yVGRA.png" /></figure><ul><li>This will install Apache in a few seconds.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wHDnh0OJqvdr_liOnFLxxA.png" /></figure><ul><li>Now our Apache always points its end point to this directory /var/www/html</li><li>For that we have to navigate to this directory</li></ul><pre>cd /var/www/html</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/1*Qsbj7AtoJPhX014dWkmPZw.png" /></figure><ul><li>Now we have to first create the file index.html for that we are gone use this command</li></ul><pre>vi index.html </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*HwChvSzV71VMgp5F9gTryw.png" /></figure><ul><li>Using this command our file will get open with name as index.html in notepad mode inside the AWS like this</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*8ZibYHAoaRz-T5mE5VfQGA.png" /></figure><ul><li>Here we need to paste our Sample HTML Code</li></ul><pre>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>&lt;body&gt;<br><br>&lt;h1&gt;Apache Web Server&lt;/h1&gt;<br><br>&lt;p&gt;On AWS&lt;/p&gt;<br><br>&lt;/body&gt;<br>&lt;/html&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*KkZ0cCunVKMx6Yjk__XSjA.png" /></figure><ul><li>To save and exit from this terminal note pad we are gone use this command shift + z + z .</li><li>Now here we are gone Start our Apache server using this command</li></ul><pre>systemctl start httpd</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*W_LqGNDhb8vonKv5MkZtOw.png" /></figure><ul><li>Hurray now our html code got hosted on our EC2 instance using Apache web server.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7K1pP8vxY8_RZcrzBr8itw.png" /></figure><ul><li>To see the output we just need to search with our public IP.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-WjDUYS8Qv_mMRwJwv8ukg.png" /></figure><h4>Clean Up</h4><ul><li><strong>Terminate the EC2 instance</strong> so you don’t get charged.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FX9gUJY5G8N-PICFdFjjaQ.png" /></figure><ul><li>Terminate the EC2 Instance</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FiUcoCJASdJc8Aool67O2g.png" /></figure><ul><li>If you want, remove the HTTP inbound rule from your Security Group.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sD-ufCNSM6McZMkj6YBShA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mYqmjV3ekmriEnFNy5nubA.png" /></figure><p>✅ <strong>Congratulations!</strong> We have just hosted a website on AWS EC2 using Apache.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=989d75b22de9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Irreducible and Reducible Error in Machine Learning]]></title>
            <link>https://swinalwaghmare.medium.com/irreducible-and-reducible-error-in-machine-learning-9db6cec9e845?source=rss-a1649ba8fa67------2</link>
            <guid isPermaLink="false">https://medium.com/p/9db6cec9e845</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[error]]></category>
            <dc:creator><![CDATA[Swinalwaghmare]]></dc:creator>
            <pubDate>Fri, 29 Mar 2024 13:02:17 GMT</pubDate>
            <atom:updated>2024-03-29T13:02:17.418Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s consider a scenario where you have data for 100 students. Each student’s record includes their CGPA, IQ (input features), and their LPA (output feature). our goal is to build a model that predicts LPA based on CGPA and IQ.</p><p>In essence, we are trying to establish a mathematical relationship between the input features (X) and the output feature (Y). This relationship can be expressed as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/145/0*-3h-jkR8slfSt4N_" /></figure><p>Here, f(X) represents the true underlying function that maps the input features to the output. However, there’s a catch.</p><h4><strong>Irreducible Error: The Inherent Uncertainty</strong></h4><p>The real-world relationship between X and Y isn’t perfect. There will always be some inherent variability or “noise” in the data, represented by an error term. This error is called an I<strong>rreducible error</strong>. It’s caused by factors beyond the scope of our model, such as:</p><ul><li>Unobserved variables that influence LPA (e.g., personality traits, work experience)</li><li>Random chance or natural fluctuations in the data</li></ul><p>The irreducible error is unavoidable and cannot be reduced through modeling techniques.</p><p><strong>Reducible Error: The Room for Improvement</strong></p><p>While irreducible error is inherent, there’s another type of error we can address: <strong>reducible error</strong>. This error arises from limitations in our model’s ability to capture the true relationship between X and Y. It can be caused by:</p><ul><li><strong>Underfitting</strong>: The model is too simple and fails to capture the complexities of the data.</li><li><strong>Overfitting</strong>: The model becomes too specific to the training data and performs poorly on unseen data.</li></ul><p>By improving the model’s design, selecting better features, or increasing the amount of training data, we can reduce the reducible error.</p><blockquote>✍🏽 <strong>Key Points:</strong></blockquote><blockquote>Irreducible error is inherent noise in the data and cannot be reduced.</blockquote><blockquote>Reducible error arises from limitations in the model and can be improved through better modeling techniques.</blockquote><blockquote>Our goal is to minimize the total error (irreducible + reducible) for better predictions.</blockquote><p>By acknowledging these error components, we gain a deeper understanding of the challenges and limitations of machine learning models.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9db6cec9e845" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>