Hands-on infrastructure training on real systems, graded automatically, with timed exam simulations.
Kubernetes · Linux · Docker · Terraform · Ansible · Networking
CloudTrain gives every learner their own real environment: kubeadm clusters on VMs, virtual clusters, Linux hosts, routers and switches, wired together on a private network. The learner works in a browser terminal, and the platform grades the end state with typed checks, so there are no multiple-choice shortcuts. Each result is evidence for specific skills, and an adaptive model picks the next lab. When a learner is ready, they take a timed exam simulation built the same way.
- Real environments, not simulators. A lab is a topology: jumphost containers, KubeVirt VMs, kubeadm clusters booted from golden images, vclusters and FRR routers. Each lab gets its own Kube-OVN network, and every link is its own segment, with packet capture and latency/loss impairment.
- Graded on what's actually there. Checks are typed (Kubernetes queries,
auth can-i, shell, files, service state, reachability, device commands) and run with admin credentials the learner never sees. Hints cost points, and learner-facing messages never reveal the answer. - Labs that are proven to work. Every lab ships with a reference solution,
alternative valid solutions, and wrong-approach "misconceptions".
labctl verifyruns each one live: checks must fail before the solution and pass after it, every misconception must fail the checks aimed at it, alternatives must pass, two random seeds must agree, and teardown must leave nothing behind. - Exam simulations. One timer for the whole exam, no hints, tasks drawn from pools weighted like the real blueprint (a retake gets fresh tasks), one shared environment, and grading after a freeze, a re-run check and an optional reboot. The result is a per-objective score report, with pass/fail against the exam's pass mark.
- Adaptive learning. A skill graph spanning Kubernetes, Linux, containers, infrastructure as code, automation and networking, mapped to CKA, CKAD, CKS, LFCS, RHCSA-, Linux+-, Terraform-, RHCE- and CCNA-aligned objectives. Recommendations explain why each lab is next.
- Built for organisations. Enterprise SSO (Microsoft Entra ID, Okta, Google, any OIDC/SAML IdP brokered through Keycloak), roles from IdP app roles and groups, and per-organisation data isolation enforced by Postgres row-level security. There are views for learners, managers, instructors, authors, org admins and platform operators, plus an append-only audit log.
- Fast and economical sessions. Warm pools hand out a ready lab in under a second, and hibernate/resume keeps the learner's work while freeing compute. Instructors can observe a learner's terminal read-only (the learner sees a banner) and extend, reset or end sessions.
Three themes: dark, light and cream (light, cream).
- Labs are data. Each lab is a
lab.yaml(formatcloudtrain.dev/v3): topology, setup, typed checks tagged with skills, hints, misconceptions and solutions.labctlcompiles it into aLabTemplate. - The orchestrator is a Kubernetes operator with
LabTemplate,LabSession,WarmPool,ExamTemplateandExamSessionresources. Pluggable node drivers run containers, KubeVirt VMs, kubeadm clusters, vclusters and network devices. - Credentials stay separate. The learner works as an unprivileged user in the entry node; admin credentials live in a sidecar the learner can't read.
The approved curriculum lives in content/curriculum.yaml,
rendered in docs/curriculum.md. Scenarios are original,
with fictional organisations. Paths and exams are aligned to certification
objectives and never copy exam content.
| Domain | Paths | Learning labs + exam tasks | Exam simulations | Built | Verified live |
|---|---|---|---|---|---|
| Kubernetes | 5 | 192 | 3 | 2 | 190 |
| Linux administration | 11 | 279 | 3 | 3 | 276 |
| Containers with Docker | 11 | 135 | 2 | 7 | 128 |
| Infrastructure as code with Terraform | 5 | 99 | 2 | — | 99 |
| Configuration management and automation | 7 | 97 | 1 | 1 | 87 |
| Network administration | 4 | 78 | 1 | — | 72 |
| Security operations | 3 | 67 | 1 | — | — |
| Total | 46 | 947 (542 learning, 405 exam tasks) | 14 | 13 | 852 |
"Built" means written and passing schema, skill and compile validation;
"verified" means it also passed the full live labctl verify cycle. The table
is generated from content/curriculum.yaml (task curriculum:render), and CI
fails when it is out of date.
CloudTrain is in early development. Here is exactly where it stands.
Working and proven live
- Local platform: kind with KubeVirt, CDI, Kube-OVN and Multus, one-command setup
(
task dev:up, which also recovers the cluster after a host restart), and per-lab network isolation proven by connection checks. - Lab runtime: container, vcluster, kubeadm-on-VMs and FRR network-device nodes;
the grader;
labctl verify; warm pools and hibernate/resume (vcluster). - Runtime hardening: Pod Security
baselineenforced on every virtual cluster's host namespace (a learner's privileged pod is refused),kubeadm initretried with a configurable provisioning timeout, lab links that carry bridged and VLAN-tagged traffic, and an opt-in sudo-capable learner for pod labs. Round 4: rate-limited lab links (broadcast-storm labs can run), writable network sysctls in lab network nodes, a wired entry node reachable over its links,kubectl debugrefused up front with a clear message when it would break Pod Security in a virtual cluster, and a 20 s default timeout for Kubernetes checks. - Exam engine: drawing tasks, the shared environment, timer freeze, auto-solved runs scoring 100%, unsolved runs failing, and retakes drawing different tasks.
- Exam simulations through the gateway with real sign-in (Keycloak and CSRF), run by the same in-cluster orchestrator as the web app's labs.
- Platform: SSO with real Microsoft Entra ID and brokered IdPs, roles, Postgres row-level security, audit logging, assignments, quotas, instructor controls (a 54-check end-to-end proof).
- Web: learner, exam, manager, instructor, admin and platform views in mock mode; real mode drives live labs with a real terminal and real grading.
Built but not yet proven end to end
- Hibernate/resume on kubeadm clusters, VM labs with extra disks, and the
kubeadm initretry under heavy load. - The full lab-cluster image (metrics-server, ingress, Gateway API, MetalLB, storage provisioner, Falco, gVisor, kube-bench).
In progress
- Foundations: boot tests of the full kubeadm image, the
deb-labandubuntu-vmimages, and offline package and registry mirrors. - Content: more Kubernetes developer and security labs, and the first Docker and Terraform labs.
Known gaps
- Kata Containers isolation for production.
Not started
- Lab content for Ansible, and for Linux labs that need VMs or Kata.
- Scenario Studio generation (the UI is mocked) and the AI tutor.
- Production deployment on vCenter with Kata Containers.
- Harden the runtime: offline mirrors, Kata isolation, rate-limited lab links.
- Finish the Kubernetes track: verify all 192 labs and run the three Kubernetes exam simulations end to end through the web app.
- Fill the other domains: Linux (pods, Kata and VMs), Docker (Kata pods running dockerd), Terraform (offline providers against vclusters and emulators), Ansible (managed-node VMs), and networking (FRR, SR Linux).
- Scenario Studio: authors describe a lab, it is generated, then gated by the same live verifier before a pilot cohort sees it.
- AI tutor: explains failures from check results and terminal context, subject to an explicit data policy.
- Production: self-hosted on vCenter (KubeVirt with nested virtualisation, Kata for privileged labs), warm pools sized by demand, and multi-tenant SaaS.
UI only, with mock data (no cluster needed):
pnpm install
task dev:web:mock # http://localhost:5173 (persona switcher: learner, manager, instructor, admin)Full local stack (Linux or WSL2 with /dev/kvm, Docker, ~16 GB RAM free):
task tools # pinned CLIs into ~/.local/bin
task dev:up # kind + KubeVirt + CDI + Kube-OVN + Multus (heals expired certs)
task dev:deps # Postgres, Keycloak (realms, orgs, IdPs), Mailpit; migrate + seed
task dev:orchestrator # lab orchestrator in the cluster
task dev:gateway # gateway on :8787
task dev:web # the app in real mode on :5173
task dev:site # the public website on :6969 (sign-in hands over to :5173)Prove a lab works:
task lab:verify -- --only scale-berth-planner ../../content/packs/kubernetes/labsChecks:
pnpm -r build && pnpm -r test
node tools/lab-verify/bin/lab-verify.mjs --strict
cd services/lab-orchestrator && go vet ./... && go test ./...| Path | What |
|---|---|
apps/web |
Web app (React, TanStack Router, xterm.js, React Flow); mock and real mode; the public website (docs/website.md) |
services/gateway |
Backend for the web app: OIDC sessions, authorisation, Postgres, catalog, labs, exams, terminal WebSocket |
services/lab-orchestrator |
Kubernetes operator (Go), node drivers, grader, exam engine, labctl |
packages/lab-schema, packages/api-types |
Lab, curriculum and site schemas; shared API types |
content/ |
Skill graph, framework mappings, curriculum, lab packs, website configuration (site.yaml) |
tools/ |
lab-verify, curriculum renderer, image builds, license inventory, slot limiter |
deploy/ |
Local stack: kind, KubeVirt, Kube-OVN, Multus, vcluster, compose deps |
docs/ |
Architecture, platform identity, dev environment, curriculum, handoff, research |
Every change runs through security pipelines on GitHub Actions (details):
- Static analysis: CodeQL (JS/TS, Go, Actions), Semgrep, gosec, shellcheck, hadolint, actionlint, zizmor.
- Secrets: gitleaks.
- Dependencies: Dependabot, dependency review with a license gate, govulncheck, osv-scanner.
- SBOMs: syft (CycloneDX, SPDX), submitted to the dependency graph.
- Images: Trivy and Grype scans; signed with cosign; SLSA provenance and SBOM attestations.
- Infrastructure as code: kube-linter, Trivy config, checkov.
- Running app: OWASP ZAP against the web app and gateway.
- Other: OpenSSF Scorecard and nightly Go fuzzing.
All actions are pinned to commit SHAs with least-privilege permissions.
Report vulnerabilities privately through GitHub Security Advisories; see SECURITY.md. Never open a public issue for a vulnerability.
CloudTrain is source-available, not open source. See docs/licensing.md for the plain-language model, what is free, what needs a license key, and FAQs.
- Software: Business Source License 1.1. Self-hosting is free for any purpose, including training your own organisation's employees and contractors, as long as you do not offer CloudTrain, its labs or assessments to third parties as a hosted, managed, embedded or commercial service, or resell it. Premium enterprise features (SSO with external identity providers, SCIM and others) need a license key in production; removing or bypassing the key checks is not permitted. Each version becomes Apache-2.0 four years after its first public release.
- Lab content (
content/: labs, skill graph, framework mappings): CC BY-NC 4.0, with an additional permission to train your own organisation's personnel on a self-hosted installation, also in a commercial organisation. Credit "CloudTrain" when you share it. - Hosted service: CloudTrain's hosted service is paid per compute consumed, plus subscription tiers for the premium features.
- Third-party software: see THIRD_PARTY_LICENSES.md and NOTICE.
- Contributing: see CONTRIBUTING.md; contributors sign the CLA.
Certification names are trademarks of their owners. CloudTrain is not
affiliated with or endorsed by any certification body. Screenshots come from
node apps/web/scripts/readme-shots.mjs.





















