Câu hỏi
Pod Pending nhưng node CPU thấp, anh điều tra gì?
Văn nói 45–90 giây
“Em xác nhận trước Pod chưa được schedule hay đã có Node nhưng còn
ContainerCreating. NếuPodScheduled=False, em đọc EventFailedSchedulingthay vì nhìn mỗi CPU usage. Scheduler accounting theo resource request so với Node allocatable và requests đã phân bổ, nên CPU thực tế thấp vẫn có thể báoInsufficient cpu. Sau đó em kiểm tra quota, node selector/required affinity, taint–toleration, topology spread, volume topology, host port và extended resource. Em chỉ thêm capacity khi thật sự thiếu resource và Node group mới thỏa đúng constraint; selector sai hay volume khác zone thì thêm Node bất kỳ không giải quyết. Khi sửa xong,PodScheduled=Truemới chứng minh placement; em vẫn theo tới Running, Ready, available replica và business SLI.”
Câu đào sâu để phân biệt mức hiểu
- Request, limit và actual usage khác nhau thế nào đối với scheduler?
requiredvàpreferredaffinity đi vào Filter/Score ra sao?- Toleration có bảo đảm Pod sẽ chạy trên Node được taint không?
- Scheduler có tự chuyển Pod đang chạy sang Node khác để cân bằng không?
- Khi nào preemption giúp và khi nào “preemption is not helpful”?
Bằng chứng câu trả lời tốt
- Tách đúng placement, execution và readiness.
- Dùng
PodScheduled/Events thay vì đoán từ dashboard. - Nói rõ thêm Node chỉ hữu ích khi Node mới thuộc feasible set.
- Kết thúc bằng cả Kubernetes state và kết quả nghiệp vụ.