What are Kubernetes deployment health gates: readiness probes, `maxUnavailable` and `progressDeadlineSeconds`?
AdvancedConceptDeployment Strategies and GitOps
Answer
A rollout only advances when new pods become Ready (readiness probe passing), and maxUnavailable: 0 ensures old pods are not removed until replacements are ready. If new pods never become ready, the Deployment reports ProgressDeadlineExceeded after progressDeadlineSeconds (default 600), but it does not roll back by itself; the pipeline should detect it.
kubectl rollout status deployment/api --timeout=300s || {
kubectl rollout undo deployment/api; exit 1; }
A bad readiness probe (always true) defeats the entire safety mechanism, so it must test real dependencies lightly.