Simulate GPU Scheduling on kind with a Fake GPU Device Plugin
Intermediate · 30 minutes · 5 tasks, checked automatically · 100 points
In this lab you will learn how to simulate GPU-based workload scheduling on a local kind cluster — without any real GPU hardware. You will deploy a fake NVIDIA GPU device plugin using a DaemonSet that advertises synthetic `nvidia.com/gpu` extended resources on each node, then schedule ML-style workloads that request those fake GPUs. This mirrors exactly how real MLOps pipelines request GPU resources in production Kubernetes clusters, giving you hands-on experience with device plugins, resource limits, and GPU-aware scheduling — all on your laptop.
What you’ll learn
- Deploy a fake GPU device plugin DaemonSet that advertises nvidia.com/gpu extended resources on cluster nodes
- Verify that fake GPU capacity appears on nodes and understand how Kubernetes extended resources work
- Schedule GPU-requesting pods (simulating ML training jobs) and confirm correct GPU-aware placement and resource accounting
How this lab works
- Start the lab: One click starts a real Kubernetes cluster on your computer (kind), with kubectl ready in a toolbox terminal.
- Work through 5 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work reads your live cluster and says, task by task, what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Cluster: A real Kubernetes cluster on your computer (kind)
- Kubernetes: 1.34.8
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop installed and running
- A kind cluster created in the Kubernetes Playground
Topics: kubernetes, gpu, mlops, device-plugin, scheduling, extended-resources, kind, nvidia, resource-management, machine-learning
Create a free account to start this lab.
Keep going
- Deploy a FastAPI ML Inference Service and Load-Test It
- Install KServe and Serve a Model with an InferenceService
- Batch (Offline) Inference as a Parallel Kubernetes Job
- Schedule Periodic Retraining with an Argo CronWorkflow
- Use MinIO as S3-Compatible Storage for Datasets and Models
- Run a Vector Database (Qdrant) on Kubernetes