Readiness probe quyết định Pod đã sẵn sàng nhận traffic chưa. Liveness probe quyết định container có cần restart không. Startup probe bảo vệ app khởi động chậm để liveness không giết quá sớm.
Ví dụ:
yaml
readinessProbe:
httpGet:
path: /ready
port: 8000
livenessProbe:
httpGet:
path: /health
port: 8000
startupProbe:
httpGet:
path: /health
port: 8000
failureThreshold: 30
periodSeconds: 2Không dùng liveness để check dependency xa như database nếu lỗi tạm thời sẽ khiến app restart liên tục.