Scheduler đọc constraints
Scheduler cần tìm node thỏa resources, taint/toleration, node/pod affinity, topology, volume và policy. nodeSelector đơn giản; affinity linh hoạt hơn; anti-affinity/spread cải thiện failure distribution nhưng có thể làm cluster nhỏ không schedule được.
Taint và Pending
Taint repel Pod; toleration chỉ cho phép, không chỉ định placement. Khi Pod Pending, dùng describe/events để thấy constraint cụ thể. Thay đổi node label/taint phải có inventory, owner và rollback vì ảnh hưởng workload khác.
Bài tập
Tạo hai node label scenario, một taint/toleration scenario và một anti-affinity scenario. Ghi expected placement, Pending evidence, remediation và cleanup restore. Pass khi giải thích được vì sao một constraint là required hay preferred.