Pod lifecycle và evidence
Pod spec được API nhận, scheduler bind vào node, kubelet tạo sandbox/container rồi cập nhật conditions. Running chỉ nói container process đang chạy; Ready mới liên quan traffic/consumer. Khi lỗi, dùng get → describe/events → logs/previous → exec theo câu hỏi, không xóa lặp lại để che symptom.
Imperative và YAML
Dùng --dry-run=client -o yaml để tạo skeleton nhanh, sau đó thêm labels, resources, probes và security context. Pod đơn lẻ không có controller tự tạo lại; nếu cần desired replicas/rollout, bài Deployment sẽ xử lý sau.
Bài tập
Tạo healthy Pod và một Pod lỗi command/probe, thu evidence, sửa và verify. Ghi expected state cho phase/conditions/events, rồi cleanup namespace. Pass khi chẩn đoán được lỗi mà không cần đoán hoặc dùng destructive reset.