Startup là cửa sổ khởi động
Startup probe bảo vệ app chậm trong giai đoạn đầu; khi pass, readiness quyết định traffic và liveness theo dõi hung process. Tính startup budget: failureThreshold × periodSeconds (cộng timeout/overhead), dựa trên startup distribution và SLO.
Debug theo timeline
- Startup fail: app chưa qua gate, xem events/logs/command/path và dependency.
- Startup pass nhưng readiness fail: app chưa đủ điều kiện nhận traffic.
- Startup pass nhưng liveness fail: process đã khởi động nhưng hung/unhealthy, có thể restart.
Không tăng budget vô hạn để che image/config/dependency failure; verify conditions, EndpointSlice, restart count và rollout.
Bài tập
Dựng app slow-start với cả ba probe, đo state timeline, mô phỏng startup over-budget/hung/readiness failure, chỉnh config và tạo variant. Ghi SLO, rollback và cleanup proof.