DEV.co
Open-Source DevOps · rohitg00

k8sgames

k8sgames is a browser-based 3D simulation game that teaches Kubernetes concepts through interactive play. Users deploy pods, fix failures, and run real kubectl commands without installation, plus a diagramming tool for designing cluster architectures.

Source: GitHub — github.com/rohitg00/k8sgames
1.2k
GitHub stars
166
Forks
JavaScript
Primary language
Apache-2.0
License (OSI-approved)

Key facts

Objective fields from the source. Values we can't verify are shown as “Unknown” rather than guessed.

FieldValue
Repositoryrohitg00/k8sgames
Ownerrohitg00
Primary languageJavaScript
LicenseApache-2.0 — OSI-approved
Stars1.2k
Forks166
Open issues8
Latest releasev1.1.0 (2026-04-01)
Last updated2026-04-28
Sourcehttps://github.com/rohitg00/k8sgames

What k8sgames is

A vanilla JavaScript (Three.js r152) application delivering a 25-resource K8s simulator with 29 incident types, real kubectl command execution, RBAC simulation, and a YAML export/import architecture diagrammer. Runs entirely client-side; no backend or build step required.

Quickstart

Get the k8sgames source

Clone the repository and explore it locally.

terminalbash
git clone https://github.com/rohitg00/k8sgames.gitcd k8sgames# follow the project's README for install & configuration

Need it deployed, integrated, or customized instead? DEV.co ships production installs.

Best use cases

Kubernetes certification prep (CKA, CKAD)

Campaign mode progresses through 20 levels covering pods, deployments, networking, storage, and production patterns. Real kubectl commands and incident handling mirror exam scenarios.

Interactive onboarding for platform/SRE teams

New engineers can learn cluster concepts, troubleshooting workflows, and architecture patterns without needing a lab cluster. Sandbox mode allows free design and experimentation.

Architecture documentation and review

K8s Draw (/draw) enables stakeholders to design, visualize, and export cluster topologies as YAML or PNG, then share via URL for collaborative feedback.

Implementation considerations

  • Browser-based delivery: requires no server infrastructure; users visit k8sgames.com or clone and run `python3 -m http.server`. Verify browser compatibility (WebGL for Three.js) across target user devices.
  • No persistence layer: game state is in-browser memory only. Local save/restore is not documented; closing the tab loses progress unless YAML is manually exported.
  • kubectl command bar is a UI simulation, not a real kubectl client. Commands are parsed and simulated; they do not connect to actual clusters.
  • RBAC and incident simulation are rule-based, not cryptographically enforced. Suitable for learning but not for security policy testing.
  • 90+ JavaScript files, ~50K lines. Maintenance and updates depend on a single maintainer (rohitg00). Code review and contribution process not documented.

When to avoid it — and what to weigh

  • Need production cluster simulation with multi-node networking — k8sgames is a learning visualization, not a realistic multi-node scheduler. It does not simulate actual etcd, API server, kubelet behavior, or network I/O.
  • Require offline-first or air-gapped deployment — Project is designed as a web app (k8sgames.com). Local http.server mode works but lacks any documented sync, persistence, or enterprise deployment model.
  • Need integration with existing CI/CD or cluster tools — k8sgames is an isolated educational sandbox with no API, webhooks, or adapters to real clusters, registries, or deployment pipelines.
  • Seeking formal training certification or compliance tracking — Achievement system exists (40 achievements, 30-level XP), but there is no LMS integration, completion certificates, audit logs, or SCORM export.

License & commercial use

Apache-2.0 license permits commercial use, modification, and redistribution with attribution and liability disclaimer. Compliant with OSI standards. Requires inclusion of license and NOTICE file if redistributed.

Apache-2.0 is a permissive open-source license that allows commercial use without restriction, including embedding in paid products or services. However, no implied warranty of fitness; you assume liability. Consult legal counsel if bundling into enterprise products or reselling.

DEV.co evaluation signals

Editorial assessment — not user reviews. Directional, with an explicit confidence level.

SignalAssessment
MaintenanceActive
DocumentationStrong
License clarityClear
Deployment complexityLow
DEV.co fitGood
Assessment confidenceHigh
Security considerations

k8sgames is a client-side simulation with no backend or user authentication. Incidents and kubectl commands are simulated in-browser; no real cluster access or sensitive data is exposed. RBAC simulation is for learning purposes only and does not enforce cryptographic policy. If deployed in an organization, confirm that browser sandbox restrictions (CORS, CSP, WebGL) meet security posture requirements. No known CVEs documented; however, dependency security (Three.js r152) should be verified independently.

Alternatives to consider

Katacoda / Killercoda

Interactive terminal-based Kubernetes labs with real clusters. More hands-on but requires account setup and internet connectivity per scenario.

Minikube + kubectl CLI

Local Kubernetes cluster for learning. Lowest-level hands-on experience but steeper learning curve; no gamification or visual scaffolding.

Kubernetes 'kind' (in Docker) + custom exercises

Lightweight multi-node cluster in containers; allows real kubectl and debugging. Requires Docker and CLI skills; no built-in curriculum.

Software development agency

Build on k8sgames with DEV.co software developers

Play k8sgames now at k8sgames.com or clone the repo for local use. No signup, no installation—just open your browser and start a campaign or sandbox mode today.

Talk to DEV.co

Related open-source tools

Surfaced by semantic similarity across the DEV.co open-source index.

Related on DEV.co

Explore the category and the services that help you build with it.

k8sgames FAQ

Can k8sgames connect to my real cluster?
No. k8sgames is a browser-based simulator only. It does not support connecting to live clusters or running commands against real API servers. It is designed for learning and architecture diagramming in isolation.
Is game progress saved?
Not documented. Progress appears to be in-browser memory. Users can export cluster state as YAML manually, but automatic save/restore across sessions is not mentioned in README or docs.
Can I use k8sgames offline?
Yes. Clone the repo and run `python3 -m http.server 8080` locally. No internet or external services required, but WebGL-capable browser is necessary.
Is this suitable for CKA exam prep?
It covers many CKA domains (pods, deployments, networking, storage, RBAC, troubleshooting). Campaign mode and Challenges mode align with exam topics. However, it is not a complete exam simulator; use alongside hands-on labs and official exam mock tests.

Custom software development services

Adopting k8sgames is usually one piece of a larger software development effort. As a software development agency, DEV.co provides software development services and web development expertise — pairing senior software developers and web developers with your team to design, build, and operate open-source devops software in production.

Ready to learn Kubernetes interactively?

Play k8sgames now at k8sgames.com or clone the repo for local use. No signup, no installation—just open your browser and start a campaign or sandbox mode today.