cka-sim/tracks/cka
vumast3r 1cd963e8b5 fix: stop the session baseline from restarting the scheduler and controller-manager
RESTORE_BASELINE ran `sed -i` on the scheduler and controller-manager
manifests before every session, whether anything needed fixing or not. sed
writes its temp file (sedXXXXXX) into /etc/kubernetes/manifests, the kubelet
loads it as one more static pod and kills the running one, so every session
start sent both into CrashLoopBackOff for up to minutes - while that
session's tasks were being seeded. New namespaces got no default
ServiceAccount, so their bare Pods were rejected, and Pods sat unscheduled.
The practice cluster's kubelet journal showed the sed churn at each session
start, and kube-controller-manager had restarted 10 times.

Manifests are now edited through `medit`: only when an edit changes the
content, and via a hidden temp file (the kubelet ignores dot-files) moved
into place. mkns waits 90 s for the ServiceAccount instead of 30 and fails
loudly instead of silently.

Verified on a throwaway cluster: three no-op baselines cause zero restarts;
a scheduler command typo, an injected controller-manager flag and an
apiserver command typo are all still repaired.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mhxm4rsUfuE5HoytYbu2YW
2026-09-24 12:38:59 -06:00
..
bank_extra.py refactor: renumber the CKA bank 1-102 with no gaps 2026-09-22 22:05:37 -06:00
bank_hard.py fix: Q64 scored a point for doing nothing; Q45 failed a grade taken right after the restore 2026-09-22 22:24:09 -06:00
bank_sim_c.py fix: install the Gateway API CRDs when Q56 or Q74 is seeded 2026-09-22 22:18:38 -06:00
bank_sim_d.py refactor: renumber the CKA bank 1-102 with no gaps 2026-09-22 22:05:37 -06:00
common.py fix: stop the session baseline from restarting the scheduler and controller-manager 2026-09-24 12:38:59 -06:00
questions.py refactor: renumber the CKA bank 1-102 with no gaps 2026-09-22 22:05:37 -06:00
solutions.py refactor: renumber the CKA bank 1-102 with no gaps 2026-09-22 22:05:37 -06:00