Inspiration

I wrote Kubernetes for Absolute Beginners (Apress) and I work on the computing infrastructure of a large physics experiment. The questions I get from beginners are almost never "what is a Pod?". They are "I applied it, there were no errors, why does nothing work?"

The answer is usually one of a handful of bugs that Kubernetes accepts without complaint: a Service selector with a typo that routes traffic to zero Pods, an Ingress pointing at the container port instead of the Service port, an autoscaler that can't scale because the Pods have no CPU request, a tutorial from 2018 using API versions removed years ago, or a password in plain text in Git.

Linters exist, but they are built for experts in CI: they print a rule ID and you go searching. A student needs a mentor that says what is wrong, why it matters, how to fix it and what each line means. That is KubeMentor.

What it does

Paste a manifest, open a file or pick one of five examples. KubeMentor runs instantly, as you type:

  • Review: 26 checks across correctness, networking, scaling, security and reliability. Each finding has a severity in words (Must fix, Should fix, Tip), jumps to the exact line, and has a "Why it matters" lesson with a link to the official docs. A 0–100 score sums it up.
  • Fix: 19 checks have a safe automatic fix. Apply one at a time or all at once, see a line-by-line diff of what changed, and undo anything.
  • Traffic map: an Ingress → Service → Workload → ConfigMap/Secret diagram. Broken links show as red dashed lines to "missing" boxes, so you can see why a request never arrives. Click any box to jump to it in the editor.
  • Explain: a plain-English summary of every resource ("Keeps 3 Pods running… restarted if it uses more than 256Mi of memory"), cron schedules in words ("at 02:30 on weekdays") and a field-by-field glossary.
  • Share and CLI: share links carry the YAML in the URL fragment (never sent to a server), and the same engine runs as a CLI with exit codes and JSON output for CI.

Everything runs in the browser. There is no server and no sign-up, and a Content-Security-Policy blocks all network connections, so you can paste real manifests safely.

Who it helps

Students and junior engineers learning Kubernetes, bootcamp and university instructors who want students to get feedback without waiting for office hours, and anyone reviewing a pull request with YAML in it.

How I built it

  • Plain HTML, CSS and JavaScript ES modules, with no framework and no build step, so the entire app builds into one 130 KB HTML file that works offline when you double-click it.
  • A pure analysis engine (src/core/) shared by the web app and the Node CLI: a parser that keeps per-document line numbers and reports YAML errors without hiding the other documents, a path-to-line locator, 26 data-driven rules that see all resources at once (so cross-resource bugs are detectable), a fix engine, a graph builder and an explainer.
  • Safe fixes: each fix runs on a fresh parse, then the whole file is re-checked until nothing fixable remains. Tests prove every fix removes its own finding, never lowers the score and is idempotent. Fixes that need a human decision, like which image version to pin, are deliberately not automated.
  • Quality: 52 unit tests and 20 Playwright browser tests on desktop and phone, including the single-file build opened from disk, including axe-core accessibility scans of every tab in light and dark mode, an XSS test with a malicious share link, and a test that the page makes no outside network requests. GitHub Actions runs everything on every push.

Challenges I ran into

  • Pointing at the right line. YAML parsers return objects, not positions. I wrote a small indentation-aware locator that maps a path like spec.template.spec.containers[0].env[1] back to the editor line, including lists written at the same indent as their key.
  • Fixes that reveal the next bug. Fixing a Service selector suddenly makes the wrong targetPort visible, just as it would on a real cluster. The fix engine re-checks in passes until it is stable, and the UI shows this "next layer" naturally.
  • Not being too clever. Auto-fixing is tempting, but a wrong fix teaches the wrong lesson. Every fix has a note when it involves a judgement (for example "check that the image supports a non-root user"), and risky rewrites are left to the human.
  • Accessibility of a diagram. The SVG map is keyboard-operable and has a full text version ("Service web selects → Pods app=frontend (no match: broken)") so it works with a screen reader.

Accomplishments that I'm proud of

  • It catches the "deploys fine, nothing works" class of bugs that single-object linters miss, and it shows them on a map.
  • The first example goes from 24 to 94 in one click, and every change is explained and visible in a diff.
  • Zero runtime dependencies besides a YAML parser, zero servers, zero data collection.
  • Fully tested, accessible, works on a phone and in dark mode.

What I learned

How much teaching fits into a single error message: "what, where, why, how to fix" is a format that works for people. I also learned to treat fixes as transformations with tests of their own, and how to build accessible SVG diagrams.

What's next for KubeMentor

  • Helm chart and Kustomize support (render, then review).
  • A "challenge mode" for classrooms: broken manifests to fix against the clock.
  • More rules (PodDisruptionBudgets, NetworkPolicies, resource quotas) and translations of the lessons into Italian and Spanish.
  • A VS Code extension using the same engine.

Limitations

It only sees what is in the file, so objects defined elsewhere are reported as tips. YAML comments are not kept in the fixed output. Suggested resource values are starting points, not measurements. It complements, and does not replace, kubectl apply --dry-run=server and policy engines.

Built during the event, and credits

  • All code, tests, examples and images were created during the LaunchPad Hacks hacking period (16 Oct to 4 Dec 2026). No pre-existing code was reused; the git history shows the timeline. My pre-existing knowledge of Kubernetes comes from my book and my job.
  • AI assistance: I used an AI coding assistant (Claude Code by Anthropic) to help write code, tests and documentation. I chose the problem, the scope and the checks, and I reviewed the result.
  • Third-party: js-yaml (MIT) for parsing; Playwright (Apache-2.0) and axe-core (MPL-2.0) for testing only. Lessons link to the official Kubernetes documentation.
  • Kubernetes® is a registered trademark of the Linux Foundation. This project is independent and not affiliated with it.

Built With

Share this project:

Updates

Submission history