Stuck rollouts: Kubernetes reports the stall
This story was written with the assistance of an AI writing program.
A slow rollout and a stalled one can look the same from kubectl rollout status. A CLI timeout alone does not tell you which.
kubectl rollout status watches, and --timeout is the watcher's patience. When it expires, the command exits even if the rollout is still progressing. The controller's verdict lives on the Deployment.
When a rollout stops making progress, the Deployment controller waits progressDeadlineSeconds (default 600s), then sets the Deployment's Progressing condition to False with reason ProgressDeadlineExceeded. That is the stall report: no automatic rollback, nothing killed. The controller keeps processing the rollout in the background, so new progress can still clear it. The deadline is a signal, not a death sentence.
Common causes: image pull errors, failing readiness probes, insufficient quota or permissions, limit ranges.
Check the condition, not just the CLI exit:
kubectl rollout status deploy/web --timeout=10s kubectl describe deploy web | sed -n '/Conditions/,/Events/p' Progressing: False with ProgressDeadlineExceeded means the controller's deadline tripped. The new ReplicaSet's events then point at the actual cause.
Takeaway: a rollout-status timeout is your watch giving up; ProgressDeadlineExceeded is Kubernetes flagging the stall. Fix the cause, or roll back yourself with kubectl rollout undo deploy/web. The Deployment will not do it for you.
原文:https://www.a8q9.cn/en/article/stuck-rollouts-kubernetes-reports-the-stall-3d8e4d.html