kubestronaut-sim/images/node/rootfs/etc/exam.bashrc
vumas3r f3d0e536b6 Exam simulator for CKA, CKAD and CKS with per-task hosts and a remote desktop
kubestronaut-sim runs each exam task on a host of its own - a kind (kubeadm)
cluster in rootless podman, or a QEMU/KVM Ubuntu VM for the CKS tasks that
need their own kernel (Falco, AppArmor) - and puts a browser desktop in front
of them, the way killer.sh and sailor.sh do.

- ksim, sim/: the engine (sessions, drills, study mode, grading, coverage,
  audit), host and VM lifecycle, the desktop
- images/: exam host images (common, CKS variant with its tools, VM guest)
- cka/ (131 tasks), ckad/ (105), cks/ (110): task banks, curricula with
  study notes, reference solutions and scripted solutions

Every domain of every track has at least 17 pool tasks. `./ksim audit` proves
a task three ways: it seeds cleanly on its own host, scores nothing before
anyone has worked on it, and reaches full marks when its scripted solution is
run on the host as `candidate`. All 346 tasks pass (CKA audited 2026-10-13,
CKAD and CKS 2026-10-12).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JZPd3GGWyxTgAkL6a4gAJz
2026-10-13 16:29:33 -06:00

16 lines
724 B
Plaintext

# What the exam hosts preset: the k alias and kubectl completion. Nothing else - $do, $now and
# friends are yours to type, as on the day.
[ -n "${PS1:-}" ] || return 0
alias k=kubectl
if command -v kubectl >/dev/null 2>&1; then
source <(kubectl completion bash) 2>/dev/null
complete -o default -F __start_kubectl k 2>/dev/null
fi
# Image tasks: the exam hosts have podman and docker, used with sudo. Here both names are root's
# podman, so `podman build`, `sudo podman build` and `docker build` all land in the same store -
# the one the grader looks in.
alias podman='sudo podman'
alias docker='sudo podman'
# candidate@cka0037 rather than candidate@cka0037-control-plane
PS1='\u@'"${HOSTNAME%-control-plane}"':\w\$ '