Data lifecycle trước volume type
emptyDir phù hợp scratch/cache, không survive Pod; hostPath phụ thuộc node; PVC request storage còn PV/StorageClass/provisioner thực hiện binding/provisioning. Ghi durability, access mode, topology, permissions và reclaim policy trước khi chọn.
Debug và cleanup
PVC Pending thường do class/capacity/access/provisioner/topology; mount failure có thể do permissions/device/driver. Sau delete PVC, Retain và Delete cho kết quả khác nhau; phải đọc policy trước destructive action và có backup/restore expectation.
Bài tập
Tạo PVC lab, mount vào Pod, ghi/đọc marker, cố ý mismatch rồi debug bằng describe/events. Cleanup theo policy và ghi PV/data state sau mỗi bước. Pass khi không nhầm “Bound” với “backup”.