<?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"><channel><title><![CDATA[Kubernetes in 5 Mins]]></title><description><![CDATA[Kubernetes in 5 Mins]]></description><link>https://yashrajshuklaaa.hashnode.dev</link><image><url>https://cdn.hashnode.com/res/hashnode/image/upload/v1593680282896/kNC7E8IR4.png</url><title>Kubernetes in 5 Mins</title><link>https://yashrajshuklaaa.hashnode.dev</link></image><generator>RSS for Node</generator><lastBuildDate>Wed, 07 Oct 2026 08:00:39 GMT</lastBuildDate><atom:link href="https://yashrajshuklaaa.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Who Actually Starts a Pod? Understanding Kubernetes Architecture Like an Engineer]]></title><description><![CDATA[You wrote your first Deployment.
You ran
kubectl apply -f deployment.yaml

A few seconds later...
pod/nginx-79f8b7c8f5-abcde Running

Nice.
But have you ever stopped and wondered...
Who actually start]]></description><link>https://yashrajshuklaaa.hashnode.dev/who-actually-starts-a-pod-understanding-kubernetes-architecture-like-an-engineer</link><guid isPermaLink="true">https://yashrajshuklaaa.hashnode.dev/who-actually-starts-a-pod-understanding-kubernetes-architecture-like-an-engineer</guid><category><![CDATA[Kubernetes]]></category><category><![CDATA[Devops]]></category><category><![CDATA[cloud native]]></category><category><![CDATA[beginnersguide]]></category><dc:creator><![CDATA[Yash Raj Shukla]]></dc:creator><pubDate>Sat, 05 Sep 2026 20:17:19 GMT</pubDate><content:encoded><![CDATA[<p>You wrote your first Deployment.</p>
<p>You ran</p>
<pre><code class="language-bash">kubectl apply -f deployment.yaml
</code></pre>
<p>A few seconds later...</p>
<pre><code class="language-text">pod/nginx-79f8b7c8f5-abcde Running
</code></pre>
<p>Nice.</p>
<p>But have you ever stopped and wondered...</p>
<p>Who actually started this Pod?</p>
<p>Was it kubectl?</p>
<p>Was it the API Server?</p>
<p>Was it the Scheduler?</p>
<p>Or did Docker somehow know what to do?</p>
<p>The answer is surprisingly interesting.</p>
<p>Let's follow one Pod from your laptop all the way to a running container.</p>
<p>By the end of this article, Kubernetes will feel less like magic and more like a group of engineers doing one job each.</p>
<hr />
<h1>Think Like an Engineer</h1>
<p>Imagine you're deploying an API.</p>
<p>Your company has 500 servers.</p>
<p>You could SSH into every server.</p>
<p>Download the latest image.</p>
<p>Start the container.</p>
<p>Restart it if it crashes.</p>
<p>Repeat this every day.</p>
<p>That sounds painful.</p>
<p>Now imagine you hire six engineers.</p>
<p>One receives deployment requests.</p>
<p>One keeps records.</p>
<p>One decides where applications should run.</p>
<p>One checks if everything is healthy.</p>
<p>One works inside every server.</p>
<p>Everyone has exactly one responsibility.</p>
<p>That is Kubernetes.</p>
<p>It is not one giant application.</p>
<p>It is a team.</p>
<p>Every component has one job.</p>
<hr />
<h1>Meet the Team</h1>
<p>Before we dive deeper, let's meet everyone.</p>
<table>
<thead>
<tr>
<th>Component</th>
<th>Job</th>
</tr>
</thead>
<tbody><tr>
<td>kubectl</td>
<td>Sends your request</td>
</tr>
<tr>
<td>API Server</td>
<td>Receives every request</td>
</tr>
<tr>
<td>etcd</td>
<td>Stores the cluster state</td>
</tr>
<tr>
<td>Scheduler</td>
<td>Chooses a machine</td>
</tr>
<tr>
<td>Controller</td>
<td>Makes reality match what you wanted</td>
</tr>
<tr>
<td>kubelet</td>
<td>Runs containers on a node</td>
</tr>
</tbody></table>
<p>Simple enough.</p>
<p>Now let's see how they work together.</p>
<hr />
<h1>Step 1</h1>
<p>You Ask Kubernetes</p>
<p>Everything begins with</p>
<pre><code class="language-bash">kubectl apply -f deployment.yaml
</code></pre>
<p>Many beginners think kubectl creates Pods.</p>
<p>It doesn't.</p>
<p>kubectl is just a messenger.</p>
<p>Imagine pressing the "Place Order" button on Amazon.</p>
<p>The button does not deliver your package.</p>
<p>It only sends the request.</p>
<p>kubectl does the same thing.</p>
<p>It packages your YAML into an HTTP request and sends it to the API Server.</p>
<p>Its job is already finished.</p>
<hr />
<h1>Step 2</h1>
<p>The Front Door</p>
<p>Every request enters Kubernetes through one place.</p>
<p>The API Server.</p>
<p>Think of it as the receptionist of a large company.</p>
<p>Nobody walks directly into the CEO's office.</p>
<p>Everyone checks in at reception first.</p>
<p>The API Server asks questions.</p>
<p>Who are you?</p>
<p>Are you allowed to create this Deployment?</p>
<p>Is the YAML valid?</p>
<p>If everything looks good, it accepts the request.</p>
<p>But here's something interesting.</p>
<p>The API Server still hasn't created a Pod.</p>
<p>Not even one.</p>
<p>So where is your Deployment now?</p>
<hr />
<h1>Step 3</h1>
<p>Kubernetes Writes Everything Down</p>
<p>Before Kubernetes does anything, it writes everything into etcd.</p>
<p>Think of etcd as the notebook of the entire cluster.</p>
<p>If Kubernetes forgets something, the cluster becomes chaos.</p>
<p>So every object is stored first.</p>
<p>Deployments.</p>
<p>Pods.</p>
<p>Services.</p>
<p>Secrets.</p>
<p>Everything.</p>
<p>At this point, your Pod still does not exist.</p>
<p>Only the desired state exists.</p>
<p>Kubernetes now knows what you want.</p>
<p>It still has to make it happen.</p>
<hr />
<h1>Step 4</h1>
<p>The Controllers Wake Up</p>
<p>Controllers never sleep.</p>
<p>Seriously.</p>
<p>They spend their entire life asking one question.</p>
<p>"Does reality match what the user wants?"</p>
<p>The Deployment Controller notices something.</p>
<p>The user wants three Pods.</p>
<p>Reality says zero Pods exist.</p>
<p>That does not match.</p>
<p>So it creates a ReplicaSet.</p>
<p>The ReplicaSet notices the same problem.</p>
<p>Three Pods should exist.</p>
<p>Zero Pods exist.</p>
<p>It creates Pod objects.</p>
<p>Notice something.</p>
<p>Nobody started containers.</p>
<p>Kubernetes is still creating objects.</p>
<p>Not processes.</p>
<hr />
<h1>Step 5</h1>
<p>Someone Has to Choose a Machine</p>
<p>Every new Pod has an empty field.</p>
<pre><code class="language-yaml">nodeName: ""
</code></pre>
<p>That means</p>
<p>"I don't know where to run."</p>
<p>The Scheduler now joins the story.</p>
<p>Imagine you work in IT.</p>
<p>Five servers are available.</p>
<p>One has no memory.</p>
<p>One is overloaded.</p>
<p>One matches every requirement.</p>
<p>Which one would you choose?</p>
<p>That is exactly what the Scheduler does.</p>
<p>It studies every node.</p>
<p>CPU.</p>
<p>Memory.</p>
<p>Labels.</p>
<p>Affinity rules.</p>
<p>Taints.</p>
<p>Resource requests.</p>
<p>Then it makes one decision.</p>
<p>"This Pod belongs on worker-3."</p>
<p>That's all.</p>
<p>The Scheduler never starts containers.</p>
<p>Its job ends here.</p>
<hr />
<h1>Step 6</h1>
<p>The Quiet Hero</p>
<p>Inside every node lives kubelet.</p>
<p>If the Scheduler is the planner...</p>
<p>kubelet is the builder.</p>
<p>It notices a new Pod assigned to its machine.</p>
<p>It pulls the image.</p>
<p>It asks containerd to create containers.</p>
<p>It mounts volumes.</p>
<p>It runs health checks.</p>
<p>Finally...</p>
<p>Your application starts.</p>
<p>Congratulations.</p>
<p>The Pod is Running.</p>
<hr />
<h1>What Makes Kubernetes Beautiful?</h1>
<p>Nobody knows everything.</p>
<p>Nobody does everything.</p>
<p>Every component has one responsibility.</p>
<p>The API Server accepts requests.</p>
<p>etcd remembers them.</p>
<p>Controllers compare reality.</p>
<p>The Scheduler chooses a node.</p>
<p>kubelet starts containers.</p>
<p>Simple pieces.</p>
<p>Working together.</p>
<p>That is Kubernetes architecture.</p>
<hr />
<h1>Remember This</h1>
<p>The next time you run</p>
<pre><code class="language-bash">kubectl apply -f deployment.yaml
</code></pre>
<p>Remember what actually happens.</p>
<p>You did not create a Pod.</p>
<p>You started a conversation.</p>
<p>Every Kubernetes component joined at the right moment.</p>
<p>Each did one job.</p>
<p>Then quietly stepped aside for the next one.</p>
<p>That simple design is the reason Kubernetes can manage thousands of machines without becoming one giant piece of software.</p>
<p>In the next article, we'll answer another interesting question.</p>
<p>Why doesn't Kubernetes run containers directly?</p>
]]></content:encoded></item><item><title><![CDATA[GPUs, MIG & Kubernetes]]></title><description><![CDATA[Hey My Friend
How are You?
Let's Start now
If you're learning AI and Kubernetes, you’ve probably heard about GPUs.But what exactly are they, and why do they matter so much when combined with MIG and K]]></description><link>https://yashrajshuklaaa.hashnode.dev/gpus-mig-kubernetes</link><guid isPermaLink="true">https://yashrajshuklaaa.hashnode.dev/gpus-mig-kubernetes</guid><dc:creator><![CDATA[Yash Raj Shukla]]></dc:creator><pubDate>Sun, 29 Mar 2026 22:18:23 GMT</pubDate><content:encoded><![CDATA[<p>Hey My Friend</p>
<p>How are You?</p>
<p>Let's Start now</p>
<p>If you're learning AI and Kubernetes, you’ve probably heard about <strong>GPUs</strong>.<br />But what exactly are they, and why do they matter so much when combined with <strong>MIG</strong> and <strong>Kubernetes</strong>?</p>
<p>This blog explains everything in very simple language.</p>
<h3>What is a GPU?</h3>
<p><strong>GPU</strong> stands for <strong>Graphics Processing Unit</strong>.</p>
<ul>
<li>CPUs are good at handling general tasks (like running your laptop).</li>
<li><strong>GPUs</strong> are super-fast at doing thousands of calculations at the same time.<br />That’s why they are perfect for AI, Machine Learning, image processing, and scientific work.</li>
</ul>
<p><strong>Simple Analogy</strong>:<br />Think of CPU as one chef cooking in a kitchen.<br />A GPU is like <strong>100 small chefs</strong> working together at high speed.</p>
<p>In AI, training or running large models needs massive parallel calculations — this is where GPUs shine.</p>
<h3>The Problem with GPUs</h3>
<p>GPUs are <strong>very expensive</strong>.<br />A single high-end GPU (like NVIDIA H100) can cost tens of thousands of dollars.</p>
<p>In traditional setups:</p>
<ul>
<li>One GPU is given to only <strong>one user or one application</strong> at a time.</li>
<li>Most of the time, the GPU is not fully used → wastage of money and power.</li>
</ul>
<p>This is a big problem in AI companies and colleges.</p>
<h3>What is MIG? (Multi-Instance GPU)</h3>
<p><strong>MIG</strong> = <strong>Multi-Instance GPU</strong></p>
<p>It is a smart technology by NVIDIA that lets you <strong>split one big GPU into several smaller independent GPUs</strong>.</p>
<p>For example:</p>
<ul>
<li>One powerful A100 or H100 GPU can be divided into <strong>up to 7 smaller GPUs</strong>.</li>
<li>Each small piece (called MIG instance) has its own memory, compute cores, and works independently.</li>
</ul>
<p><strong>Simple Analogy</strong>:<br />A big apartment (one GPU) is divided into 7 small independent flats.<br />Each flat has its own kitchen, electricity, and door. People living in different flats don’t disturb each other.</p>
<p>This gives:</p>
<ul>
<li>Better utilization of expensive GPUs</li>
<li>Strong isolation (one workload can’t crash another)</li>
<li>Predictable performance</li>
</ul>
<h3>How Kubernetes + GPUs + MIG Work Together</h3>
<p>Kubernetes is excellent at managing containers, but normal containers don’t understand GPUs.</p>
<p>Here’s how it works:</p>
<ol>
<li>Kubernetes uses the <strong>NVIDIA GPU Operator</strong> to detect and manage GPUs.</li>
<li>With <strong>MIG</strong>, one physical GPU is split into multiple instances.</li>
<li>Kubernetes sees each MIG instance as a separate small GPU.</li>
<li>You can now assign different AI workloads (training, inference, experiments) to different MIG slices on the <strong>same physical GPU</strong>.</li>
</ol>
<p><strong>Result</strong>:<br />You get much higher GPU usage, lower costs, and safer multi-user environments.</p>
<h3>Why This Combination Matters in 2026</h3>
<ul>
<li>AI workloads are growing rapidly.</li>
<li>Companies want to run many small AI models or experiments at the same time.</li>
<li>MIG + Kubernetes allows <strong>multiple teams or applications to safely share</strong> powerful (and costly) GPUs.</li>
<li>It saves huge amounts of money while maintaining performance and security.</li>
</ul>
<p><strong>Real-life benefit</strong>:<br />Instead of buying 7 separate GPUs, you can run 7 different AI services on just <strong>one</strong> physical GPU.</p>
<h3>Simple Summary</h3>
<table>
<thead>
<tr>
<th>Term</th>
<th>Meaning</th>
<th>Benefit</th>
</tr>
</thead>
<tbody><tr>
<td><strong>GPU</strong></td>
<td>Super-fast processor for parallel tasks</td>
<td>Powers AI and heavy computations</td>
</tr>
<tr>
<td><strong>MIG</strong></td>
<td>Splits one GPU into multiple isolated slices</td>
<td>Better utilization + strong isolation</td>
</tr>
<tr>
<td><strong>Kubernetes</strong></td>
<td>Automatic manager for containers</td>
<td>Schedules and manages GPU workloads</td>
</tr>
</tbody></table>
<p>Together, they make AI infrastructure <strong>cheaper, smarter, and more efficient</strong>.</p>
<hr />
<p><strong>Final Thought for You Buddy:</strong></p>
<p>You don’t need to understand every technical detail right now.<br />Just remember this:</p>
<blockquote>
<p><strong>GPUs give power to AI. MIG makes GPUs shareable. Kubernetes makes everything automatic and easy to manage.</strong></p>
</blockquote>
<p>This combination is one of the most important technologies behind modern AI systems in 2026.</p>
<hr />
<blockquote>
<h3>"The noblest pleasure is the joy of understanding"</h3>
<p>— <em>Leonardo da Vinci</em></p>
</blockquote>
<p>Keep learning </p>
]]></content:encoded></item><item><title><![CDATA[AI and Kubernetes]]></title><description><![CDATA[Hey Wassupp Buddies...
You’ve probably heard that AI is booming — ChatGPT-like models, image generators, AI agents, and recommendation systems are everywhere.
But here’s something most beginners don’t]]></description><link>https://yashrajshuklaaa.hashnode.dev/ai-and-kubernetes</link><guid isPermaLink="true">https://yashrajshuklaaa.hashnode.dev/ai-and-kubernetes</guid><dc:creator><![CDATA[Yash Raj Shukla]]></dc:creator><pubDate>Sun, 29 Mar 2026 22:06:49 GMT</pubDate><content:encoded><![CDATA[<p>Hey Wassupp Buddies...</p>
<p>You’ve probably heard that <strong>AI is booming</strong> — ChatGPT-like models, image generators, AI agents, and recommendation systems are everywhere.</p>
<p>But here’s something most beginners don’t realize:<br /><strong>Behind almost every powerful AI system today is Kubernetes.</strong></p>
<p>In 2026, Kubernetes has quietly become the <strong>operating system for AI</strong>.<br />66% of generative AI workloads already run on it, and major companies like OpenAI, Hugging Face, and Anthropic rely on it heavily.</p>
<p>This guide explains <strong>why AI needs Kubernetes</strong>, how they work together, and why you (as a student) should care — all in simple language with zero jargon overload.</p>
<h3>First, Quick Recap: What is Kubernetes?</h3>
<p>Kubernetes (K8s) is like an <strong>automatic manager</strong> for containers.<br />You tell it:  </p>
<ul>
<li>“Run my app with 5 copies”  </li>
<li>“Make sure it never goes down”  </li>
<li>“Scale up when traffic increases”</li>
</ul>
<p>Kubernetes handles the rest — self-healing, scaling, updates, and networking.<br />It turns messy server management into smooth, automatic operations.</p>
<h3>Why Does AI Love Kubernetes?</h3>
<p>AI workloads are <strong>completely different</strong> from normal web apps:</p>
<ul>
<li>Training a big model needs <strong>hundreds of GPUs</strong> working together.</li>
<li>Inference (answering user queries) can suddenly spike — one moment you need 10 GPUs, the next you need 500.</li>
<li>AI experiments involve <strong>many small services</strong> (data loaders, trainers, evaluators, APIs).</li>
<li>Models are huge and expensive — you can’t afford downtime or wasted resources.</li>
</ul>
<p>Kubernetes solves these problems perfectly:</p>
<ol>
<li><p><strong>Automatic Scaling</strong><br />Traffic to your AI chatbot explodes? Kubernetes adds more Pods (containers) instantly. Traffic drops? It removes them to save cost.</p>
</li>
<li><p><strong>Self-Healing</strong><br />A training job crashes at 3 AM? Kubernetes restarts it automatically. No more waking up engineers.</p>
</li>
<li><p><strong>Resource Management for GPUs</strong><br />Modern Kubernetes handles GPUs intelligently. It can split GPUs, schedule jobs to the right hardware, and even auto-scale GPU nodes.</p>
</li>
<li><p><strong>Distributed Training</strong><br />Big AI models train across many machines. Kubernetes coordinates everything so the GPUs work as one team.</p>
</li>
<li><p><strong>Easy Experimentation</strong><br />Data scientists can spin up new experiments with one YAML file. No more fighting with servers.</p>
</li>
</ol>
<h3>Real-World Examples (2026 Reality)</h3>
<ul>
<li><strong>Inference Serving</strong>: Tools like vLLM and SGLang run on Kubernetes for fast AI responses.</li>
<li><strong>AI Agents &amp; Multi-Agent Systems</strong>: Companies are building entire agent teams on Kubernetes because it handles complex communication and scaling.</li>
<li><strong>Cost Savings</strong>: Proper Kubernetes setup can reduce AI infrastructure costs dramatically by using resources efficiently.</li>
<li><strong>Standardization</strong>: The CNCF (Cloud Native Computing Foundation) now has “Kubernetes AI Conformance” programs so AI workloads run consistently across clouds.</li>
</ul>
<p>In short: <strong>Kubernetes turned AI from “cool demo” into reliable production systems.</strong></p>
<h3>Simple Analogy for Beginners</h3>
<p>Think of AI as a <strong>super smart chef</strong> (the model).<br />Kubernetes is the <strong>entire restaurant kitchen staff</strong>:</p>
<ul>
<li>The chef needs ingredients (GPUs) → Kubernetes brings them.</li>
<li>Customers suddenly arrive in large numbers → Kubernetes calls more waiters (scales inference Pods).</li>
<li>One waiter gets sick (a Pod crashes) → Kubernetes replaces them instantly.</li>
<li>The kitchen runs 24/7 without the chef worrying about lights, gas, or cleaning.</li>
</ul>
<p>You just tell the kitchen what you want. It handles everything else.</p>
<h3>Why This Matters for You as a Beginner/Student</h3>
<ul>
<li><strong>High-demand jobs</strong>: Companies want people who understand both AI <em>and</em> Kubernetes.</li>
<li><strong>Future-proof skill</strong>: Whether you build web apps, AI agents, or data pipelines — Kubernetes is the common language.</li>
<li><strong>Real projects</strong>: You can now deploy your college AI project (like a chatbot or image classifier) the same way big companies do.</li>
</ul>
<p>Even if you’re just starting with AI, learning basic Kubernetes concepts (Pods, Deployments, Services, Scaling) will make you stand out.</p>
<h3>Quick Advice to Get Started</h3>
<ol>
<li>First understand containers and basic Kubernetes (Pods → Deployments → Services).</li>
<li>Try running a simple web app on Minikube.</li>
<li>Then try deploying a small AI model (Hugging Face has easy examples).</li>
<li>Focus on <strong>why</strong> Kubernetes helps AI — not memorizing every command.</li>
</ol>
<p>The best part?<br />You don’t need a powerful laptop. Start locally with Minikube or Kind, then move to free cloud trials.</p>
<hr />
<p><strong>Final Thought:</strong></p>
<p>Kubernetes didn’t become popular because it’s trendy.<br />It became popular because <strong>AI needs reliable, scalable, cost-effective infrastructure</strong> — and Kubernetes delivers exactly that.</p>
<p>AI gives the intelligence.<br />Kubernetes gives the power to run that intelligence at real scale.</p>
<p>Together, they’re changing how the world builds software.</p>
<hr />
<p>Keep learning... 
The future is AI + Kubernetes and you’re getting in at the perfect time! </p>
<blockquote>
<h3>"Learning never exhausts the mind."</h3>
<p>— <em>Leonardo da Vinci</em></p>
</blockquote>
]]></content:encoded></item><item><title><![CDATA[How to Read and Write Kubernetes YAML]]></title><description><![CDATA[Hey Folks! Wassup
Let's Start...
When you first look at Kubernetes files, they look scary with lots of brackets and lines.But here’s the truth: YAML is just a simple way to write instructions for Kube]]></description><link>https://yashrajshuklaaa.hashnode.dev/how-to-read-and-write-kubernetes-yaml</link><guid isPermaLink="true">https://yashrajshuklaaa.hashnode.dev/how-to-read-and-write-kubernetes-yaml</guid><dc:creator><![CDATA[Yash Raj Shukla]]></dc:creator><pubDate>Sun, 29 Mar 2026 21:55:00 GMT</pubDate><content:encoded><![CDATA[<p>Hey Folks! Wassup</p>
<p>Let's Start...</p>
<p>When you first look at Kubernetes files, they look scary with lots of brackets and lines.<br />But here’s the truth: <strong>YAML is just a simple way to write instructions</strong> for Kubernetes.</p>
<p>This guide will teach you how to read and write Kubernetes YAML in the easiest way possible — with almost no confusion.</p>
<h3>What is YAML?</h3>
<p>YAML is a human-friendly format used to create configuration files.<br />It is clean, easy to read, and uses simple key-value pairs.</p>
<p><strong>Basic Rules You Must Remember:</strong></p>
<ul>
<li>Use <strong>two spaces</strong> for indentation (never use Tab key)</li>
<li>Write in <code>key: value</code> format</li>
<li>Lists start with a dash <code>-</code></li>
<li>You can add comments using <code>#</code></li>
</ul>
<h3>The 4 Main Sections of Every Kubernetes YAML</h3>
<p>Every Kubernetes YAML file has these four important parts:</p>
<ol>
<li><strong>apiVersion</strong> – Tells which version of Kubernetes to use</li>
<li><strong>kind</strong> – Tells what type of resource you are creating (Pod, Deployment, Service, etc.)</li>
<li><strong>metadata</strong> – Basic information like name and labels</li>
<li><strong>spec</strong> – The most important part. This is where you describe <strong>what you want</strong> Kubernetes to do</li>
</ol>
<p>Think of it like writing a letter:</p>
<ul>
<li>apiVersion &amp; kind = Type of letter</li>
<li>metadata = Your name and address</li>
<li>spec = The actual message you want to send</li>
</ul>
<h3>How to Read a Kubernetes YAML File</h3>
<p>Let’s understand with simple logic:</p>
<ul>
<li><strong>apiVersion</strong> tells Kubernetes how old or new the instructions are.</li>
<li><strong>kind</strong> says “I am creating a Deployment” or “I am creating a Pod”.</li>
<li><strong>metadata</strong> gives the object a name so Kubernetes can identify it.</li>
<li><strong>spec</strong> is the heart of the file. Here you define:<ul>
<li>How many copies should run</li>
<li>Which container image to use</li>
<li>What ports to open</li>
</ul>
</li>
</ul>
<p>If you understand these four sections, you can read almost any Kubernetes YAML.</p>
<h3>The Most Important Resource: Deployment</h3>
<p>In real projects, you will mostly work with <strong>Deployment</strong>.</p>
<p>A Deployment YAML basically says:</p>
<blockquote>
<p>“Kubernetes, please run my application with these settings and keep it healthy.”</p>
</blockquote>
<p>Inside the Deployment, there is a <strong>template</strong> section. This template is the blueprint that tells how each Pod should be created.</p>
<p>The <code>replicas</code> field is very important — it tells Kubernetes how many copies of your application should run.</p>
<h3>How to Write Kubernetes YAML (Beginner Way)</h3>
<p>Start with the four main sections first.</p>
<p>Step-by-step thinking process:</p>
<ol>
<li>Decide what you want to create → Set the <code>kind</code></li>
<li>Give it a clear name in <code>metadata</code></li>
<li>In <code>spec</code>, describe your requirements clearly</li>
<li>Use proper spacing (2 spaces)</li>
</ol>
<p>Best practice for beginners:</p>
<ul>
<li>Always start by copying a working example</li>
<li>Change only the name, image, and number of replicas</li>
<li>Keep the structure same</li>
</ul>
<h3>Why YAML is Powerful</h3>
<p>With just one YAML file, you can tell Kubernetes:</p>
<ul>
<li>Which application to run</li>
<li>How many copies you need</li>
<li>How it should behave when something fails</li>
<li>How updates should happen</li>
</ul>
<p>Kubernetes will then automatically manage everything for you.</p>
<p>You don’t need to manually create servers, install software, or restart apps. You just describe the final result you want, and Kubernetes works to make it real.</p>
<h3>Quick Tips for Beginners</h3>
<ul>
<li>Focus on <strong>Deployment</strong> first. It is the most commonly used resource.</li>
<li>Always check indentation carefully. Even one wrong space can cause errors.</li>
<li>Use meaningful names for your resources.</li>
<li>Start small — understand Pod and Deployment properly before moving forward.</li>
<li>YAML is declarative: You tell Kubernetes <strong>what</strong> you want, not <strong>how</strong> to do it step by step.</li>
</ul>
<h3>Final Advice</h3>
<p>Don’t try to write YAML from scratch in the beginning.<br />Take a simple example, understand each line, then slowly modify it according to your needs.</p>
<p>Once you become comfortable reading the four main sections (<code>apiVersion</code>, <code>kind</code>, <code>metadata</code>, <code>spec</code>), writing Kubernetes YAML will feel natural.</p>
<p>Mastering YAML is one of the most important skills in Kubernetes. It is the main language used to communicate with Kubernetes in real projects.</p>
<hr />
<p><strong>You’ve got this!</strong></p>
<p>Save this guide and revise the four sections whenever you feel stuck.</p>
<p>Ready for the next topic?  </p>
<p>Keep learning step by step. You are doing really well! </p>
<p>"Where the spirit does not work with the hand, there is no art."
— Leonardo da Vinci</p>
]]></content:encoded></item><item><title><![CDATA[Kubernetes Part 2]]></title><description><![CDATA[Kubernetes Glossary for Beginners: Easy & Detailed Guide
Hey friends!  
Learning Kubernetes can feel overwhelming with so many new terms.Don’t worry — this glossary explains the most important Kuberne]]></description><link>https://yashrajshuklaaa.hashnode.dev/kubernetes-part-2</link><guid isPermaLink="true">https://yashrajshuklaaa.hashnode.dev/kubernetes-part-2</guid><category><![CDATA[k8s]]></category><category><![CDATA[Kubernetes]]></category><dc:creator><![CDATA[Yash Raj Shukla]]></dc:creator><pubDate>Sun, 29 Mar 2026 21:46:46 GMT</pubDate><content:encoded><![CDATA[<h1>Kubernetes Glossary for Beginners: Easy &amp; Detailed Guide</h1>
<p>Hey friends!  </p>
<p>Learning Kubernetes can feel overwhelming with so many new terms.<br />Don’t worry — this glossary explains the <strong>most important Kubernetes keywords</strong> in simple, detailed, and easy-to-understand language with real-life analogies.</p>
<p>Think of this as your quick reference guide. Bookmark it!</p>
<h3>Core Concepts</h3>
<p><strong>1. Container</strong><br />A lightweight, standalone package that contains your application code, libraries, dependencies, and everything it needs to run.<br /><strong>Easy Analogy</strong>: Like a lunch box. You pack all the food (your app) + spoon, plate, and instructions inside one box. It works the same way whether you’re eating at home, college, or office.<br />Containers solve the “it works on my machine” problem.</p>
<p><strong>2. Pod</strong><br />The smallest and most basic unit in Kubernetes. A Pod is a group of one or more containers that are deployed and run together on the same machine.<br /><strong>Easy Analogy</strong>: A small apartment. Your main application lives here. Sometimes a helper container (like a sidecar) can live in the same apartment.<br />Pods are temporary — if they die, Kubernetes can create new ones.</p>
<p><strong>3. Deployment</strong><br />A smart manager that handles how your application runs. It defines which container image to use, how many copies (replicas) should run, and how updates should happen.<br /><strong>Easy Analogy</strong>: A property manager who ensures exactly 5 apartments (Pods) are always ready for your application. If one apartment gets damaged, the manager quickly builds a new one.<br /><strong>Key Point</strong>: Always use Deployment instead of creating Pods manually.</p>
<p><strong>4. ReplicaSet</strong><br />The worker behind the Deployment. It continuously checks and makes sure the exact number of Pods you want are running at all times.<br /><strong>Easy Analogy</strong>: The security team that counts people in the building every minute. If someone leaves, they immediately bring in a replacement.</p>
<p><strong>5. Service</strong><br />An object that provides a stable way to access your Pods. Pods keep changing their IP addresses, but a Service gives them a fixed name and IP. It also load balances traffic between multiple Pods.<br /><strong>Easy Analogy</strong>: A permanent golden door with a fixed address for your apartment building. No matter which apartment your friend is in, they can always knock on the same door.</p>
<p><strong>6. Scaling</strong><br />The process of increasing or decreasing the number of Pods running for your application.  </p>
<ul>
<li><strong>Manual Scaling</strong>: You decide to change the number.  </li>
<li><strong>Auto Scaling</strong>: Kubernetes automatically adds or removes Pods based on CPU, memory, or traffic.<br /><strong>Easy Analogy</strong>: During festival season, you hire more staff in your shop. When it’s quiet, you reduce the staff. Kubernetes does this automatically.</li>
</ul>
<p><strong>7. Namespace</strong><br />A virtual partition inside a Kubernetes cluster. It helps separate different environments or teams within the same cluster.<br /><strong>Easy Analogy</strong>: Different departments (Development, Testing, Production) having their own floors in the same big office building so they don’t disturb each other.</p>
<p><strong>8. Cluster</strong><br />The complete Kubernetes setup. It consists of the Control Plane (brain) and multiple Worker Nodes (where actual work happens).<br /><strong>Easy Analogy</strong>: The entire kingdom — one king’s palace (Control Plane) + many villages (Worker Nodes) where people (Pods) live and work.</p>
<p><strong>9. Node</strong><br />A physical or virtual machine that is part of the Kubernetes cluster. Worker nodes are where your Pods actually run.<br /><strong>Easy Analogy</strong>: The actual land or building where apartments (Pods) are constructed and maintained.</p>
<p><strong>10. kubectl</strong><br />The official command-line tool used to communicate with Kubernetes. It is how you give instructions to the cluster.<br /><strong>Easy Analogy</strong>: Your remote control or magic wand to manage the entire kingdom.</p>
<h3>Bonus Important Terms</h3>
<p><strong>11. Image</strong><br />A read-only template used to create containers. Examples: <code>nginx</code>, <code>python:3.12</code>.<br /><strong>Analogy</strong>: A DVD or blueprint. You use the image to create running containers.</p>
<p><strong>12. Label</strong><br />Key-value pairs attached to Kubernetes objects (like Pods) for identification and selection.<br /><strong>Analogy</strong>: Color-coded stickers on files so you can easily find and group them.</p>
<p><strong>13. Selector</strong><br />Used by Services and Deployments to choose which Pods to manage or connect to, based on labels.<br /><strong>Analogy</strong>: The rule “only talk to red sticker files”.</p>
<p><strong>14. Control Plane</strong><br />The brain of the Kubernetes cluster. It includes components like API Server, Scheduler, and Controller Manager that make all decisions.<br /><strong>Analogy</strong>: The king’s palace where all important decisions are made.</p>
<h3>Why This Glossary Matters</h3>
<p>These terms form the foundation of Kubernetes.<br />Once you understand Pods, Deployments, Services, and Scaling, 80% of Kubernetes becomes much easier.</p>
<p>Master these concepts first, then move to YAML files, volumes, and advanced topics.</p>
<hr />
<p><strong>Quick Tip for Beginners</strong>:<br />Don’t try to memorize everything at once.<br />Start with <strong>Container → Pod → Deployment → Service → Scaling</strong>.<br />These five will take you very far.</p>
<p>Save this glossary.<br />Don't Forgot to Save this.
Want the next blog on <strong>“How to Read and Write Kubernetes YAML”</strong>? Just say “Next”.</p>
<p>Happy Learning! 
See you soon Guyzzss...</p>
]]></content:encoded></item><item><title><![CDATA[Kubernetes Part 1 ]]></title><description><![CDATA[Why We Switched From Traditional Servers to Kubernetes (Even in the AI Era)
Hey Folks,
A few years ago, deploying an application was painful.
You built your app → put it on a server → prayed it would ]]></description><link>https://yashrajshuklaaa.hashnode.dev/kubernetes-part-1</link><guid isPermaLink="true">https://yashrajshuklaaa.hashnode.dev/kubernetes-part-1</guid><category><![CDATA[Kubernetes]]></category><category><![CDATA[Devops]]></category><category><![CDATA[CNCF]]></category><dc:creator><![CDATA[Yash Raj Shukla]]></dc:creator><pubDate>Sun, 29 Mar 2026 21:41:09 GMT</pubDate><content:encoded><![CDATA[<h1>Why We Switched From Traditional Servers to Kubernetes (Even in the AI Era)</h1>
<p>Hey Folks,</p>
<p>A few years ago, deploying an application was painful.</p>
<p>You built your app → put it on a server → prayed it would keep running.</p>
<p>If traffic increased, you bought more servers and manually installed everything again.<br />If the server crashed at 2 AM, someone had to wake up and fix it.<br />Updating the app? Risky. Scaling? Slow and expensive.</p>
<p>That old way is called <strong>traditional deployment</strong> (bare metal or virtual machines).</p>
<p>Then came <strong>Kubernetes</strong> — and everything changed.</p>
<h3>The Big Shift: From Manual Chaos to Smart Automation</h3>
<p><strong>Traditional Way (Old School):</strong></p>
<ul>
<li><p>Apps were tied to specific servers</p>
</li>
<li><p>Each server had its own operating system and tools</p>
</li>
<li><p>Scaling meant buying new machines and repeating the same setup</p>
</li>
<li><p>Failures needed human intervention</p>
</li>
<li><p>Every environment (dev, test, production) behaved differently</p>
</li>
</ul>
<p><strong>Kubernetes Way (Modern Way):</strong></p>
<ul>
<li><p>Your app runs inside <strong>containers</strong> (lightweight, consistent packages)</p>
</li>
<li><p>Kubernetes treats all servers as one big unified platform</p>
</li>
<li><p>You just tell Kubernetes <strong>what you want</strong>, and it makes it happen automatically</p>
</li>
</ul>
<h3>Why Did We Make This Shift?</h3>
<p>Here are the real reasons companies moved to Kubernetes:</p>
<ol>
<li><p><strong>Consistency</strong><br />"It works on my laptop" is no longer a joke. The same container runs perfectly on a developer’s machine, testing server, or in production.</p>
</li>
<li><p><strong>Self-Healing</strong><br />If an application crashes, Kubernetes automatically restarts it. No more midnight calls.</p>
</li>
<li><p><strong>Easy Scaling</strong><br />Need more copies of your app during peak hours? Kubernetes can increase the number of running instances in seconds. Traffic down? It reduces them automatically.</p>
</li>
<li><p><strong>Faster Updates</strong><br />You can roll out new versions safely with zero or minimal downtime. If something breaks, you can roll back instantly.</p>
</li>
<li><p><strong>Efficient Resource Use</strong><br />Multiple applications can run on the same servers without wasting resources. This saves a lot of money.</p>
</li>
<li><p><strong>Portability</strong><br />Your app can run on any cloud (AWS, Google, Azure) or even your own data center — without major changes.</p>
</li>
</ol>
<h3>How Does Kubernetes Make This Possible?</h3>
<p>You don’t manage individual servers anymore.<br />You describe your desired state once (how many copies, which version, etc.), and Kubernetes continuously works in the background to maintain it.</p>
<p>It’s like upgrading from riding a bicycle (manual control) to driving a self-driving car — you set the destination, and the system handles steering, speed, and obstacles.</p>
<h3>Kubernetes in the AI Era (2026)</h3>
<p>Even with the rise of AI, Kubernetes has become <strong>more important</strong>, not less.</p>
<ul>
<li><p>AI models are huge and need massive computing power</p>
</li>
<li><p>Training and serving AI applications requires running many containers across many machines</p>
</li>
<li><p>AI workloads have unpredictable spikes (sometimes you need 100 GPUs, sometimes just 10)</p>
</li>
<li><p>Kubernetes helps manage these complex, resource-hungry AI jobs efficiently and cost-effectively</p>
</li>
</ul>
<p>Companies building AI products today rely heavily on Kubernetes to handle the heavy lifting behind ChatGPT-like services, recommendation engines, and real-time inference.</p>
<h3>The Simple Truth</h3>
<p>We didn’t switch to Kubernetes because it’s trendy.</p>
<p>We switched because the old way could not keep up with modern applications — especially now when speed, reliability, and scalability matter more than ever.</p>
<p><strong>Kubernetes turned infrastructure from a headache into an automatic, invisible layer.</strong></p>
<p>It lets developers focus on building great applications instead of worrying about servers.</p>
<hr />
<p><strong>Final Thought for BTech Students:</strong><br />Learning Kubernetes is not just about DevOps anymore.<br />It’s about understanding how real-world software runs today — whether it’s a simple web app or the next big AI product.</p>
<p>The shift has already happened.<br />The question is: Are you ready for it?</p>
<p>Keep learning!</p>
]]></content:encoded></item></channel></rss>