百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
k16s-exam-simulator

k16s-exam-simulator

> DevOps
免费

K16S - CKA/CKS 实验室实际上可以破坏 kubelet、systemd、containerd、静态 Pod、etcd 和 cer

144 stars0 点赞3 次浏览
访问官网GitHub

工具介绍

K16S - CKA/CKS 实验室实际上可以破坏 kubelet、systemd、containerd、静态 Pod、etcd 和 cer

K16S - Kubernetes Exam Simulator

A self-hosted CKA and CKS exam simulator. It runs a real kubeadm cluster, on any Linux VPS, or entirely on your own laptop, no VPS required.

One command to provision. Browser-based terminal. Timed mock exams, with per-question setup and automated grading.

Why K16S

Most Kubernetes practice labs run kind or lightweight k3s clusters. Neither matches the real exam environment:

  • kind runs every node as a container inside one Docker daemon, no real node isolation, no systemctl, no kubelet config files, no crictl.
  • k3s skips kubeadm-specific workflows entirely, no cluster init, no etcd backup, no static pod manifests, no certificate management.

K16S runs a real kubeadm cluster, with Incus LXC containers as worker nodes. Each worker is a full Linux system: its own init, systemd, containerd, kubelet. That's what the actual exam runs.

Feature kind / k3d K16S
Real kubeadm cluster ✗ ✓
systemctl on workers ✗ ✓
Worker node kubelet config ✗ ✓
etcd backup/restore limited ✓
Static pod manifests limited ✓
crictl debugging ✗ ✓
Per-question setup + grading ✗ ✓

What's included

CKA - two full mock exams, 18 questions each, covering the 2026 CKA curriculum: troubleshooting, cluster architecture, networking, workloads, storage.

CKS - three full mock exams, covering the 2026 CKS curriculum: NetworkPolicy, AppArmor, seccomp, CIS benchmarks via kube-bench, API server and kubelet hardening, PKI.

Every question ships with a setup.sh that puts the cluster into the exam's broken/incomplete state, and a validate.sh that grades your fix against real cluster state.

Full question-by-question breakdown: DOCS.md § Exam content.

Requirements

Pick one mode:

Mode You need
VPS/VM Debian 13 or Ubuntu 22.04+, 4 vCPUs / 8 GB RAM / 30 GB disk, root SSH
Laptop macOS or Linux, 16 GB+ RAM, Lima
Lightweight Docker already running, kind + kubectl, ~2 GB free RAM

Full details per mode: DOCS.md § Requirements.

Quick start

Option A - on your laptop (no VPS, no cloud bill)

bash
git clone https://github.com/immanuwell/k16s-exam-simulator.git
cd k16s-exam-simulator
bash install.sh --laptop

Boots a disposable Ubuntu VM with Lima and runs the same provisioner inside it, same kubeadm cluster, same Incus workers, same exam server. Your laptop's own OS is never touched. When it's done, open http://localhost:8080/.

Manage it afterward with local/k16s-local: stop / start / status / ssh / logs / reset / destroy. Full command reference: DOCS.md § Managing your environment.

Option B - lightweight, no VM at all (Docker + kind)

bash
git clone https://github.com/immanuwell/k16s-exam-simulator.git
cd k16s-exam-simulator
bash install.sh --lightweight

Runs entirely inside Docker via kind, no VM, nothing written to your host OS. Still a real kubeadm cluster underneath, not an approximation: static pods, etcd, and systemd-managed kubelet/containerd are structurally identical to the other two modes.

One trade-off: AppArmor doesn't work under Docker, and a couple of questions reach worker nodes directly via Incus, which doesn't exist in this mode either. 10 questions total are unavailable, the UI greys them out and excludes them from scoring, so 100% is still reachable. Everything else works the same.

Manage it with lightweight/k16s-lite, same command set as laptop mode.

Option C - on a VPS or VM

bash
git clone https://github.com/immanuwell/k16s-exam-simulator.git
cd k16s-exam-simulator
bash install.sh --host 

Installs containerd/kubeadm/kubelet, runs kubeadm init with Calico, joins two Incus LXC workers, and deploys the exam server behind nginx.

If `` is a private/LAN address, open http:/// directly. If it's a public IP, install.sh detects that automatically, keeps port 80 off the public internet, opens an SSH tunnel for you, and prints http://localhost:8080/ instead. Full flag reference (--tunnel, --port, reconnecting after a dropped tunnel, etc.): DOCS.md § Installer reference.

Re-running install.sh is always safe, every step is idempotent.

How it works

Pick an exam and a duration in the UI. Setup Env puts that question's environment into its broken/incomplete state. Work the problem in the built-in terminal: kubectl, helm, etcdctl, crictl all available, workers reachable via ssh node01 / ssh node02. Check Answer grades your fix against real cluster and filesystem state, not YAML syntax.

Full architecture, API reference, and runtime file layout: DOCS.md § Architecture.

Adding custom questions

Each question is one YAML file plus two scripts, setup.sh and validate.sh. Drop them into exams//, re-run install.sh, no rebuild needed.

Full spec: DOCS.md § Adding custom questions.

Uninstalling

bash
bash uninstall.sh --host     # removes the cluster, packages, and candidate user
bash uninstall.sh --laptop               # deletes the Lima VM
bash uninstall.sh --lightweight          # deletes the kind cluster

Laptop and lightweight mode are a clean teardown by construction. Details and dry-run mode: DOCS.md § Uninstalling.

Troubleshooting

Cluster showing NotReady after a reboot, a dropped SSH tunnel, or other common issues: DOCS.md § Troubleshooting.

License

PolyForm Noncommercial 1.0.0, free for personal and non-commercial use; commercial use (including SaaS or paid services built on top of this) requires a separate agreement.

Issues· 3 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

ckacksdevops

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年9月9日
最后更新2026年9月18日
分类DevOps
定价免费

> 相关工具

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理