CICD-172 · Set a rollout progress deadline
Encyclopedia · Deployment and rollback · All snippets
Previous · CICD-171 · Next · CICD-173
1. Where it fits
- Placement .github/workflows/ci.yml, inside the relevant job.
- Prerequisites protected staging environment and trusted immutable release artifacts.
- Platforms github-actions, gitea-actions.
2. Copy the snippet
yaml
progressDeadlineSeconds: 180
minReadySeconds: 53. How it works
A progress deadline lets Kubernetes report a stalled Deployment, while minReadySeconds requires a Pod to remain ready for a minimum period. A separate release decision controls rollback.
4. Verify the result
Deployment spec settings. Monitor the condition and separately interrupt or roll back if policy requires.
Validation syntax-validated (YAML parse). Status definitions.