Safety contract cho CKA lab
CKA không chỉ kiểm tra nhớ lệnh; sai context có thể làm bài sai hoặc phá cluster. Quy trình tối thiểu là context → namespace → target → mutation → expected state → cleanup. Ghi lại runtime/version vì kind/minikube không giống kubeadm/production.
Preflight
Kiểm tra current context, namespace, nodes, API readiness và resources trước khi tạo workload. Namespace chỉ scope namespaced resources; node/cluster object cần kiểm tra riêng. Khi debug, phân biệt API unreachable, node NotReady và workload chưa Ready.
Bài tập
Dựng cluster local, tạo namespace marker có owner label, chạy preflight và ghi output đã redacted. Cố ý chuyển sang một context khác trong file note (không mutation), giải thích rủi ro, rồi quay lại context lab và cleanup marker. Pass khi một người khác chạy runbook mà không cần đoán target.