<?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 Saurabh K Singh on Medium]]></title>
        <description><![CDATA[Stories by Saurabh K Singh on Medium]]></description>
        <link>https://medium.com/@singh1203.ss?source=rss-c60a2d62769c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*kbMeo4PU1AP0uVWPZ09EVw.jpeg</url>
            <title>Stories by Saurabh K Singh on Medium</title>
            <link>https://medium.com/@singh1203.ss?source=rss-c60a2d62769c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 09:45:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@singh1203.ss/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[Journey from Contributor to Release Team: Kubernetes v1.36 ハル (Haru)]]></title>
            <link>https://medium.com/@singh1203.ss/journey-from-contributor-to-release-team-kubernetes-v1-36-%E3%83%8F%E3%83%AB-haru-e3c671cafc36?source=rss-c60a2d62769c------2</link>
            <guid isPermaLink="false">https://medium.com/p/e3c671cafc36</guid>
            <category><![CDATA[platform-engineering]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[cncf]]></category>
            <dc:creator><![CDATA[Saurabh K Singh]]></dc:creator>
            <pubDate>Mon, 25 May 2026 15:01:02 GMT</pubDate>
            <atom:updated>2026-05-26T13:55:58.308Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Haru Theme" src="https://cdn-images-1.medium.com/max/425/1*H8Zo6cGwk3P68UtStixOAw.png" /><figcaption>Stella &amp; Nacho (Ryota’s Cats) with Mount Fuji</figcaption></figure><h3>Intro</h3><p>Every open-source contribution carries a dream, the dream of learning, growing, and becoming part of something larger than yourself. For me, that dream became real when I joined the<strong> Kubernetes v1.36</strong> release team as a docs shadow. It was my chance to see how a large open-source project runs, how people collaborate across time zones, and how documentation becomes part of release quality.</p><h3>Joining the Release Team</h3><p>That dream began when I first explored the Kubernetes ecosystem through kubernetes.dev. At first, the scale of everything felt overwhelming, and I even considered stepping away. But the deeper I went, the more I realized how valuable Kubernetes documentation really was. Simplifying complex systems is hard, and the docs team was doing it incredibly well.</p><p>That understanding led me to <strong>SIG Docs</strong>, where I started attending meetings and picked up my first issue. Slowly, I became more confident and more involved. After three applications to the release sub-teams, I finally received an email from <strong>Sayan</strong>, the <em>Release Docs Team Lead</em> for <strong>v1.36 ハル (Haru)</strong>. I couldn’t hold back my happiness, and I told my mother first.</p><p>I said yes immediately to <strong>Sayan</strong>. At the same time, I knew this role would require 2–3 hours of work every day on top of my full-time job and everything else in life. But I also knew this was the next step in my <strong>Kubernetes </strong>journey.</p><h3>The Release Timeline</h3><p>The release timeline gave shape to everything we need to do, but in practice, our work was less about reading dates and more about staying in sync with the rhythm of the release. The <strong>Docs </strong>role handbook and the <a href="https://github.com/kubernetes/sig-release/blob/master/release-team/role-handbooks/docs/Release-Timeline.md">Kubernetes v1.36 Release Timeline</a> made it clear that documentation work starts early, but the real pressure builds around release notes, <em>placeholder PRs</em>, and the <em>docs freeze window</em>.</p><p>For us, the most important part was not trying to do everything at once. It was about showing up at the right time, tracking the right PRs, and making sure nothing slipped past the deadlines that mattered to release quality. The <a href="https://github.com/kubernetes/sig-release/blob/master/release-team/role-handbooks/docs/Release-Timeline.md">Role handbook</a> and timeline were already there for anyone who wanted the full detail, so what stood out to me was how much coordination and consistency it took to keep docs aligned with the rest of the release.</p><p>What made this phase unique for me was realizing that documentation was not a side task. It was part of the release machinery itself, and every small update contributed to the final version of <a href="https://kubernetes.io/blog/2026/04/22/kubernetes-v1-36-release/"><strong>Kubernetes v1.36</strong></a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*x9iLanG8FeZi1QIMt8OVdg.png" /></figure><h3>Team Rhythm and Docs Work</h3><p>The release team worked with a very clear rhythm. Most of our communication happened through Slack, weekly sync meetings, and <a href="https://groups.google.com/a/kubernetes.io/g/dev">Google Group</a> emails. The weekly update in the Zoom meeting was especially valuable because it forced me to think on my feet and explain progress, blockers, and next steps clearly.</p><p>Our work was a mix of tracking <strong><em>enhancement docs</em></strong>, reminding owners about <strong><em>placeholder</em></strong> and <strong><em>ready-for-review</em></strong> PRs, reviewing documentation for accuracy and style, and watching for docs freeze risk. We also kept release notes and website updates aligned with the cycle.</p><p>What stood out most was the culture, disciplined but supportive. People across time zones and <strong>SIGs </strong>worked together smoothly, and if someone was stuck, there was always help. That balance made the whole process feel demanding, but never isolating.</p><h3>My Learning Curve</h3><p>At first, I honestly thought the workload would overwhelm me. I expected the release team responsibilities to explode into something I would not be able to balance alongside office work and daily life.</p><p>But once I started getting more involved, the experience changed. I began multitasking across my devices, planning my day more intentionally, and building a rhythm that made the work feel manageable. My routine became very full, waking up, handling office work, contributing to release team tasks, attending standups, and then closing the day with dinner and sleep but instead of feeling drained, I felt deeply engaged by how full the days were.</p><p>Over time, this helped me sharpen my time management more than I expected. I learned to break the day into small, practical blocks and decide in advance what needed attention first. That habit became one of the most valuable things I carried from the release team experience.</p><p>The other big shift was in communication. I became much more comfortable reaching out to community members, asking for updates, following up on work, and keeping conversations clear and respectful. That kind of soft skill matters a lot in open source, and I could feel myself improving as I worked with more people across the release cycle.</p><p>The handbook was also a major part of this growth. At first, I read it like a contributor trying to understand what to do. Later, I started reading it like an operator looking at responsibilities, dependencies, timing, and what could go wrong if something was delayed. That change in perspective helped me understand that quality in this role was not just about correct documentation. It was about consistency, accountability, timely communication, and making sure the release stayed reliable for everyone depending on it.</p><p>That is when I really understood what “quality” meant in the release team: not just doing the work, but doing it in a way that kept the whole process smooth, trustworthy, and release-ready.</p><h3>Memorable Moments</h3><p>One of the most memorable moments for me was the night I was responsible for preparing the final release notes. We were already in the middle of closing things out when we discovered that some release note PRs were missing. <strong>Sayan </strong>and I stayed up through the night trying to trace what had gone wrong, and that alone taught me how much release work depends on attention to detail under pressure.</p><p>The root cause turned out to be subtle: once it v1.36.rc-0 was out, the parent branch was no longer pointed to by those PRs, so we had to add some of the release notes manually. I remember deciding that I did not want this to remain a one-cycle workaround. I wanted to fix the <strong><em>KREL </em></strong>issue properly, test it, and make sure we would not face the same scenario in the next release cycle. That mindset shift from just solving the immediate problem to improving the process itself was a big step for me.</p><p>By the end of that effort, I had fixed the issue, created the final release notes PR, and also prepared the <strong><em>Weekly sync branch</em></strong> PR. Within 24 hours, our status moved from red to green in the release team meeting. That felt incredibly rewarding, not just because the work was done, but because it showed that careful coordination, technical follow-through, and persistence really do matter in release engineering.</p><p>Another thing that stayed with me was how collaborative the team was in that moment. <strong>Tushar </strong>did incredible work by building the Rerun KREL command, and that made the whole process much smoother (<em>I will cover the technical details in the next blog</em>), but what I learned here was already clear: release work is not only about docs or tooling; it is also about trust, timing, and people stepping up when it matters most.</p><p>That night made me realize something important in a project as large as <strong>Kubernetes</strong>, the release process is not just a checklist. It is a shared responsibility, and being part of it meant I was trusted with real impact in the world’s largest open source project.</p><h3>What This Experience Changed</h3><p>This experience changed how I think about ownership, communication, and quality. I now feel more comfortable taking initiative, sharing responsibility, and reaching out early when something needs attention. I learned how to track blockers, update enhancement boards, and help keep the release status green so release day could go smoothly.</p><p>More than anything, <strong>Kubernetes </strong>taught me that release work matters because it turns individual contributions into something dependable for users at scale. And I must say a great release is a work done by people who care deeply about getting the details &amp; quality right.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e3c671cafc36" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Demystifying Queues in NVIDIA KAI Scheduler]]></title>
            <link>https://medium.com/@singh1203.ss/demystifying-queues-in-nvidia-kai-scheduler-82ece7ef543c?source=rss-c60a2d62769c------2</link>
            <guid isPermaLink="false">https://medium.com/p/82ece7ef543c</guid>
            <category><![CDATA[scheduler]]></category>
            <category><![CDATA[queue]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[gpu-computing]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[Saurabh K Singh]]></dc:creator>
            <pubDate>Thu, 02 Oct 2025 12:53:48 GMT</pubDate>
            <atom:updated>2025-10-02T15:20:52.386Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MBuFEBf-FHP8EoXVnOwqTA.png" /></figure><p>When I started contributing to the <a href="https://github.com/NVIDIA/KAI-Scheduler"><strong>NVIDIA KAI Scheduler</strong></a>, one of the areas I explored was how queues are created and configured. Queues are central to scheduling jobs in KAI, but I noticed — like many new users — that the onboarding experience felt more complicated than it needed to be.</p><blockquote>In this blog, I’ll share my journey working on the issue <em>“</em><strong><em>Default unlimited queue upon first installation</em></strong><em>”</em>, the challenges we faced, the feedback I received, and how developers can take advantage of this feature to run their first workloads more easily.</blockquote><h4>🌱 Why Queues Matter in KAI Scheduler</h4><p><strong>KAI Scheduler</strong> uses a Q<strong>ueue</strong> to organise workloads. Each queue can represent a set of jobs with shared:</p><ul><li>Scheduling rules</li><li>Quotas</li><li>Resource isolation</li></ul><p>By default, you were expected to <strong>manually create a queue</strong> before submitting jobs. The <a href="https://github.com/NVIDIA/KAI-Scheduler/blob/v0.9.3/docs/queues/README.md">official guide</a> previously recommended starting with an unlimited queue and refining later.</p><blockquote>New users of KAI Scheduler often perceive queue creation and configuration as a complex process.</blockquote><p>👉 But imagine you’re a new user who just installed <strong>KAI</strong>. You want to run your first pod. Instead of writing YAMLs to define a queue, wouldn’t it be great if a <strong>default queue were already there for you?</strong></p><p>That’s exactly what this issue aimed to solve.</p><h3>❓ The Problem</h3><p>New users often found the creation and configuration of <strong>Queues</strong> confusing. The motivation was simple:</p><ul><li><strong>Default Queue on Install</strong> → Provision an unlimited-resourced queue automatically.</li><li><strong>Seamless Scheduling</strong> → Run workloads immediately by just setting schedulerName: kai-scheduler.</li><li><strong>Evolution Path</strong> → Users could later refine defaults into advanced queue hierarchies.</li></ul><h3>💡 Initial Proposal</h3><p>Here’s the initial design direction we considered:</p><ol><li><strong>Default Queues on New Installations</strong></li></ol><ul><li>On a fresh install, <strong>KAI</strong> provisions one or more default scheduling queues.</li><li>These are used if the user doesn’t explicitly create <em>Queues</em>.</li></ul><p><strong>2. PodGrouper Integration</strong></p><ul><li>If no queue label is provided on a <strong>pod</strong>, <strong>PodGrouper</strong> falls back to the default queue.</li><li>Reference: <a href="https://github.com/NVIDIA/KAI-Scheduler/blob/main/pkg/podgrouper/podgrouper/plugins/defaultgrouper/default_grouper.go#L134">default_grouper.go</a>.</li></ul><p><strong>3. Quotas and Resource Isolation</strong></p><ul><li>The default <strong><em>Queue</em></strong> should not block user-defined queues from using resources.</li><li>Setting its quota to <strong>0</strong> ensures workloads can be scheduled, but no reserved resources are wasted.</li></ul><p><strong>4. Opt-Out Mechanism</strong></p><ul><li>Users should be able to disable this behaviour via a <strong>Helm</strong> value (defaultQueue.enabled = false).</li></ul><p><strong>5. Implementation Location</strong></p><ul><li>Helm chart with {{- if .Release.IsInstall }} or the new <em>KAI Operator</em> (preferred).</li></ul><h3>📊 How Queue Hierarchy Works</h3><p>KAI’s scheduling model isn’t flat — it requires <strong>two levels of hierarchy</strong>:</p><pre>                          Department (non-leaf)<br>                                  └── Queue (leaf)</pre><p>Without both levels, jobs stay stuck in <strong>Pending</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/286/1*bSJPI_btUYzJ2AOs1Pbfzw.png" /><figcaption>Default Queue reference Parent Queue</figcaption></figure><p>👉 The root acts as the <strong>department</strong>, while this default <strong>leaf queue</strong> is where jobs are placed.</p><h3>📦 Submitting Your First Job</h3><p>With a default queue, scheduling becomes as easy as:</p><pre># Copyright 2025 NVIDIA CORPORATION<br># SPDX-License-Identifier: Apache-2.0<br><br>apiVersion: v1<br>kind: Pod<br>metadata:<br>  name: gpu-pod<br>  labels:<br>    kai.scheduler/queue: test<br>spec:<br>  schedulerName: kai-scheduler<br>  containers:<br>    - name: main<br>      image: ubuntu<br>      command: [&quot;bash&quot;, &quot;-c&quot;]<br>      args: [&quot;nvidia-smi; trap &#39;exit 0&#39; TERM; sleep infinity &amp; wait&quot;]<br>      resources:<br>        limits:<br>          nvidia.com/gpu: &quot;1&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-ywvgDktPeeASZZ5N1yvug.png" /></figure><p>✅ That’s it — no need to configure queues manually.</p><h3>🛠️ Review Cycle &amp; Feedback</h3><p>When I opened my draft PR, maintainers shared valuable feedback:</p><ol><li><strong>Keep defaults simple</strong><br> → Create a default <strong>queue</strong> with <em>zero quota</em>. If users need more, they can define their own.</li><li><strong>Respect the scheduling model</strong><br> → <strong>KAI</strong> requires both a department and a queue. A single flat queue won’t work.</li></ol><h3>✨ Takeaway for Developers</h3><ul><li><strong>Out of the box:</strong> New users get a ready-to-use default queue.</li><li><strong>Behind the scenes:</strong> <strong><em>KAI</em></strong> always works with a hierarchy, so when defining your own queues, remember to create both parent and child levels.</li></ul><h3>💡 My Contribution</h3><p>As part of this issue, I:</p><ul><li>Proposed and drafted the feature to create a default queue on install.</li><li>Ensured compatibility with KAI’s hierarchical scheduling model.</li><li>Added Helm flag support so users can opt out if desired.</li><li>For actual code lookup, check out my PR.</li></ul><h4><strong>Pull Request: </strong><a href="https://github.com/NVIDIA/KAI-Scheduler/pull/499"><strong>#499</strong></a></h4><p>This feature makes <strong>KAI</strong> easier for beginners while staying flexible for advanced users.</p><blockquote>👉 If you’re a developer getting started with KAI Scheduler, this default queue will help you schedule your first jobs in minutes. And if you’re curious about how it works under the hood, check out the <a href="https://developer.nvidia.com/blog/nvidia-open-sources-runai-scheduler-to-foster-community-collaboration/">KAI Scheduler</a>.</blockquote><h4>⚡ Question for you, reader:<br> If you were a new user of KAI Scheduler, would you prefer <strong>auto-provisioned defaults</strong>, or do you like having <strong>manual control from day one</strong>?</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82ece7ef543c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[⚡NVIDIA’s KAI Scheduler Now Supports Leader–Worker Sets (LWS) for AI Workloads]]></title>
            <link>https://medium.com/@singh1203.ss/nvidias-kai-scheduler-now-supports-leader-worker-sets-lws-for-ai-workloads-5c69569ec215?source=rss-c60a2d62769c------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c69569ec215</guid>
            <category><![CDATA[nvidia-gpu]]></category>
            <category><![CDATA[machine-learning-ai]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[scheduling]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Saurabh K Singh]]></dc:creator>
            <pubDate>Wed, 20 Aug 2025 10:18:35 GMT</pubDate>
            <atom:updated>2025-08-20T15:04:56.396Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>In modern AI/ML workloads, scheduling efficiency plays a critical role. Kubernetes has become the de facto platform for running distributed training and inference, but complex workloads often require more than just vanilla scheduling. That’s where <a href="https://github.com/NVIDIA/KAI-Scheduler"><strong>NVIDIA’s KAI Scheduler</strong></a> comes in — a Kubernetes scheduler optimised for AI workloads.</p><p>Recently, I contributed a new feature to the KAI Scheduler: <strong>integration with Kubernetes’ LeaderWorkerSet (LWS)</strong>. This allows users to seamlessly run <strong>leader–worker style workloads</strong> with native KAI support, improving scheduling consistency and scalability for AI and Machine Learning workloads.</p><p>✨ <strong>In this post, I’ll cover:</strong></p><blockquote><strong>What LeaderWorkerSet (LWS) really is</strong> and why it’s important for scaling AI/ML workloads.</blockquote><blockquote><strong>Where KAI Scheduler fell short</strong> before this feature and thereby leaving a scheduling gap.</blockquote><blockquote><strong>How I built the new PodGrouper plugin for LWS</strong>, including key design choices and implementation details.</blockquote><blockquote><strong>What this means for practitioners</strong>, and how it improves the experience of running distributed inference jobs at scale.</blockquote><h3>Background: What is LeaderWorkerSet (LWS)?</h3><p><strong>LeaderWorkerSet (LWS)</strong> is a Kubernetes <strong>API/CRD</strong> for deploying a group of pods as a <strong>unit of replication</strong>.</p><p>It is primarily designed to support <strong>AI/ML inference workloads</strong>, especially <strong>multi-host inference jobs</strong> where a large model (like an LLM) is <strong>sharded across multiple devices and nodes</strong>.</p><p>An LWS workload typically consists of:</p><ul><li><strong>Leader Pod</strong> → orchestrates and manages coordination.</li><li><strong>Worker Pods</strong> → run the sharded parts of the model, often across multiple GPUs or nodes.</li></ul><p>LWS provides startup policies to control how leader and worker pods come up:</p><ul><li><strong>LeaderFirst</strong> → Ensure the leader pod is scheduled before workers.</li><li><strong>Parallel</strong> → Leader and workers can be scheduled together.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t-9kM-WMrbPULPxF7agfDw.png" /><figcaption>LWS (Conceptual View)</figcaption></figure><h3>The Problem in KAI Scheduler</h3><p>While <strong>LeaderWorkerSet (LWS)</strong> provides a clean and standardised way to deploy <strong>multi-host inference workloads</strong>, the <strong>KAI Scheduler</strong> originally had no integration with it.</p><p>That meant:</p><ul><li>LWS workloads were invisible to the scheduler’s grouping logic.</li><li>KAI Scheduler could not recognise an LWS workload as a <strong>single unit of replication</strong>.</li><li>Users running <strong>large, distributed inference jobs</strong> (such as sharded LLM deployments across GPUs and nodes) could not fully leverage KAI’s scheduling optimisations.</li></ul><p>In short, <strong>multi-node AI/ML inference workloads could be expressed with LWS, but KAI couldn’t schedule them effectively</strong> — leaving a critical gap between the CRD and the scheduler.</p><h3>My Contribution: PodGrouper Plugin for LWS</h3><p>KAI Scheduler abstracts workloads into <strong>PodGroups</strong> via a component called the <a href="https://github.com/NVIDIA/KAI-Scheduler/blob/8fcb26cb1f8cdf98871940a769cae7d2e890b851/docs/developer/pod-grouper.md"><strong>PodGrouper</strong></a>.</p><ul><li>A <strong>PodGroup</strong> = a set of pods that must be scheduled together.</li><li>PodGrouper plugins translate workload types (AzureML, JobSet, now LWS) into PodGroups.</li></ul><p>It connects:</p><h4>Workload → Pods → PodGroup → Scheduler</h4><h4>LWS Controller → Leader StatefulSet → Worker Groups</h4><h3>What the plugin does:</h3><ol><li><strong>Inspects the LWS instance</strong> and creates a PodGroup for each leader–worker set.</li><li>Uses the <strong>DefaultGrouper’s calculation </strong>minAvailable as the base, and conditionally overrides it only when the startupPolicy is <strong>LeaderReady</strong>.</li><li>Keeps the <strong>LWS object itself</strong> as the PodGroup owner (instead of the leader pod), so that the group is preserved even if the leader pod is deleted.</li></ol><h3>Steps I Took to Implement It</h3><p>Building this plugin was not just about wiring LWS into KAI — it required carefully aligning LWS semantics with how PodGroups work in the scheduler. Here’s how I approached it step by step:</p><ol><li><strong>Understanding the LWS Spec</strong></li></ol><ul><li>I started by digging into the LeaderWorkerSet CRD and its API fields.</li><li>Key areas of focus were the leaderWorkerTemplate, replicas, and startupPolicy.</li></ul><p>This gave me clarity on how an LWS object describes its pods and under what conditions they should start</p><p><strong>2. Mapping LWS → PodGroupMetadata</strong></p><ul><li>In KAI, every PodGroup needs metadata such as minAvailable, owner, and priority hints.</li><li>I designed the translation logic:</li></ul><p>-&gt; Take the LWS object as the <strong>PodGroup owner</strong> (to ensure stability even if the leader pod disappears).</p><p>-&gt; Use the <strong>DefaultGrouper’s </strong><strong>minAvailable calculation</strong> as the baseline, but add conditional handling: If startupPolicy = LeaderReadyEnforce that at least one leader must be ready before workers join.</p><p><strong>3. Implementing the Plugin</strong></p><ul><li>Created a new PodGrouper plugin module under the KAI codebase.</li><li>Implemented the inspection logic to watch for LWS resources and generate PodGroupMetadata on the fly.</li><li>Added configuration hooks so the scheduler can dynamically enable or disable LWS support.</li></ul><p><strong>4. Registering with the PodGrouper Hub</strong></p><ul><li>Integrated the plugin into the central <strong>PodGrouper hub</strong>, which is where KAI keeps track of all supported workload types (AzureML, JobSet, etc.).</li></ul><p>This ensured LWS workloads would be recognised just like other job types.</p><p><strong>5. RBAC and Registration</strong></p><ul><li>The plugin needs to inspect leaderworkersets, so we must register it and update RBAC rules for KAI’s PodGrouper to monitor those resources, so running make manifestsauto-generate updated RBAC rules extending the kai-podgrouper clusterRole:</li></ul><blockquote>// +kubebuilder:rbac:groups=leaderworkerset.x-k8s.io,resources=leaderworkersets,verbs=get;list;watch</blockquote><blockquote>// +kubebuilder:rbac:groups=leaderworkerset.x-k8s.io,resources=leaderworkersets/finalizers,verbs=patch;update;create</blockquote><p><strong>6. Testing and Validation</strong></p><ul><li>Deployed a local KAI Scheduler build with the plugin enabled.</li><li>Created sample LWS manifests with both <strong>LeaderFirst</strong> and <strong>Parallel</strong> startup policies.</li><li>Verified that:</li></ul><p><em>-&gt; PodGroups were correctly generated.</em></p><p><em>-&gt;Leader-first policy delayed workers until the leader was ready.</em></p><p><em>-&gt;Deleting/restarting a leader pod didn’t break the PodGroup ownership.</em></p><h3>Conclusion</h3><p>This contribution bridges the gap between LWS and the KAI Scheduler, allowing users to run distributed inference jobs with full scheduler awareness.</p><p>During review, I also refined some implementation details based on feedback:</p><ul><li>Kept the <strong>LWS object itself as the PodGroup owner</strong> instead of the leader pod, ensuring resilience if the leader pod is restarted or replaced.</li><li>Retained the <strong>DefaultGrouper’s minAvailable logic</strong> for most cases, overriding it only when LeaderReady startup policy is specified.</li></ul><p>These adjustments made the feature more robust and consistent with KAI’s extensible design.</p><p>👉 If you’re curious, here are some resources:</p><ul><li><a href="https://github.com/NVIDIA/KAI-Scheduler">KAI Scheduler Repository</a></li><li><a href="https://developer.nvidia.com/blog/nvidia-open-sources-runai-scheduler-to-foster-community-collaboration/">NVIDIA’s Scheduler</a></li><li><a href="https://github.com/kubernetes-sigs/lws">LeaderWorkerSet CRD</a></li><li>My PR: <a href="https://github.com/NVIDIA/KAI-Scheduler/pull/267">https://github.com/NVIDIA/KAI-Scheduler/pull/267</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c69569ec215" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>