Deployment rolling update thay Pods cũ bằng Pods mới dần dần. Để ít downtime cần readiness probe đúng, maxUnavailable thấp, maxSurge phù hợp, graceful shutdown và app xử lý SIGTERM.
Ví dụ:
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 1Nếu readiness probe báo ready quá sớm hoặc shutdown không drain request, rolling update vẫn có thể gây lỗi dù Kubernetes strategy nhìn đúng.
A Deployment rolling update gradually replaces old Pods with new Pods. Low downtime needs a correct readiness probe, low maxUnavailable, suitable maxSurge, graceful shutdown and app SIGTERM handling.
Example:
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 1If readiness reports ready too early or shutdown does not drain requests, a rolling update can still cause errors even when the Kubernetes strategy looks correct.