Bắt đầu từ failure signature
- Pending: Pod chưa được bind node hoặc chưa qua dependency như PVC. Kiểm tra scheduler events, resources, taints/tolerations, affinity, topology và claim.
- ImagePullBackOff/ErrImagePull: kubelet không lấy được image. Kiểm tra chính xác registry/image/tag, secret, ServiceAccount và network; image đã pull được thì không còn là nhóm lỗi này.
- CrashLoopBackOff: container đã start nhưng liên tục thoát hoặc probe thất bại. Đọc logs hiện tại và
--previous, exit code, command/args, config/secret, probe và resources.
Remediation loop
context → phase/reason → describe/events → logs/previous/conditions → hypothesis → minimal fix → observe → variant → cleanup. Không xóa evidence bằng restart vô thức. Running chỉ nói container process/state, còn Ready mới liên quan traffic; hãy kiểm tra cả hai.
Bài tập
Dựng bốn fixture lỗi trong namespace lab, tạo worksheet có symptom, evidence, hypothesis, expected state, command, fix, rollback và timestamp. Pass khi người khác đọc worksheet có thể phân biệt đúng failure và tái hiện variant.