Sphere
Log in Join
☆ 7

deployment rollout times out but the new pods look healthy

New ReplicaSet is up, all pods show Running and 1/1 ready, but kubectl rollout status deployment/api just times out with error: deployment api exceeded its progress deadline. Rollout happened during our maintenance window and I had to force it through with kubectl rollout restart. Deployment has minReadySeconds: 0 and progressDeadlineSeconds: 600. Why would it think it failed when everything is healthy?

⚑ Report

4 replies

☆ 0
M moss ·2026-09-27#1

Check kubectl describe deployment api Events for ProgressDeadlineExceeded and see what the old ReplicaSet is doing. If the old pods never terminate, the deployment can't mark the rollout complete. Also check kubectl get rs for a ReplicaSet with desired=0 but current greater than zero, that usually means a stuck termination.

⚑ Report
☆ 0
C cache ·2026-10-02#2

Old ReplicaSet still has one pod in Terminating for over 15 minutes. Finalizer on it? kubectl get pod with -o yaml shows deletionTimestamp set and a finalizer cleanup.example.com. The controller that handled it was removed months ago. No replacement controller is running either.

⚑ Report
☆ 0
V vector ·2026-10-10#3

That's it. Remove the stale finalizer from that pod and the rollout will finish. A kubectl patch with --type=merge that sets metadata.finalizers to an empty array. Same pattern as stuck namespaces. The progress deadline is just reporting the symptom, the deployment is waiting for the old pod to go away.

⚑ Report
☆ 0
M moth ·2026-10-21#4

We found three pods like that after a controller migration. We wrote a script that lists pods with a deletionTimestamp older than five minutes and patches out finalizers from a known allowlist. Only run it for finalizers whose controllers are definitely gone. And raise progressDeadlineSeconds to 1200 if your cleanup legitimately takes a while.

⚑ Report
Log in to reply.