Kubernetes Scheduler & Controller
Simulate Kube-Scheduler filter/score phases and Deployment reconciliation loops.
Click a pod to kill it, fail a node, change replicas or pod size, and watch the controller and scheduler respond.
About this tool
Kubernetes is built on control loops. You declare a desired state — “run 3 replicas of this pod, each requesting 500m CPU and 512Mi memory” — and controllers keep comparing it with the actual state and acting on the difference. When a new pod needs a home, the scheduler filters out nodes that cannot run it and scores the rest to pick the best one.
This lab simulates a Deployment on a three-node cluster. Kill pods, fail and recover nodes, change the replica count or pod size, and watch the controller reconcile step by step while the scheduler shows each node’s filter result and LeastAllocated score.
How to use Kubernetes Scheduler & Controller
- Watch the initial reconcile: three pods are created and spread across nodes by score.
- Click a pod to kill it. The controller sees 2 of 3 replicas and creates a replacement.
- Fail a node: its pods are evicted and rescheduled on the remaining Ready nodes.
- Raise the replicas or the pod requests until nothing fits, and see pods stay Pending with the exact reason, such as “Insufficient cpu”.
Examples
Filter phase
Pod requests 1000m CPU; node-2 has 600m free
node-2 is filtered out: Insufficient cpu (1000m > 600m free)
Score phase
node-1 50% used, node-3 20% used after placement
LeastAllocated scores node-3 higher, so the pod is bound to node-3
Scheduling in two phases
- Filter (predicates): drop nodes that are NotReady, lack CPU or memory for the pod’s requests, or violate taints, node selectors and affinity rules.
- Score (priorities): rank the survivors, e.g. LeastAllocated prefers emptier nodes to spread load, MostAllocated packs pods tightly to free whole nodes.
- Bind: the scheduler writes the chosen node into the pod; the kubelet on that node starts the containers.
Requests are what count
The scheduler places pods by their resource requests, not by actual usage. A node can look idle in monitoring yet reject new pods because its requests are fully reserved. Limits cap what a running container may use, but they do not affect placement.
Frequently asked questions
Everything you need to know about this tool and data security.
Why does a killed pod come back with a different name?
Pods are disposable. The ReplicaSet controller does not restart the old pod; it creates a new one from the template to restore the replica count.
How quickly are pods moved off a failed node?
In a real cluster the node is marked NotReady after missed heartbeats (about 40 seconds by default) and pods are evicted after a toleration period (300 seconds by default). The lab compresses this into a single step.
What does Pending mean?
The pod exists but has not been bound to a node. kubectl describe pod shows the scheduler’s reason, for example “0/3 nodes are available: 3 Insufficient memory”.
Is my data safe when using this tool?
Yes, 100% safe. This tool operates entirely inside your web browser using client-side JavaScript and WebAssembly. Your data never touches any external server.
Related Tools
Distributed consensus visualization with leader election, log replication, and network partitions.
Consistent hashing ring simulator with virtual nodes and rehash avalanche analysis.
Interactive BST visualizer with insertion, deletion, and tree traversals.
Featured Projects tech-fun.net
Explore more AI & productivity tools
Nihongo GameBox
Master Japanese typing, Kana, and JLPT N5–N1 vocabulary through interactive retro arcade games.
ResumeGPT
Tailors CVs and cover letters to every job opportunity with a multi-agent LLM pipeline, job tracking, and scheduled discovery.
CollectMind
Turns your bookmarks into a searchable AI knowledge base — entirely on-device, powered by Chrome's built-in Gemini Nano.