Pages

Topics

Tools

↑↓navigate↵openescclose
All guides

Kubernetes: deployment exceeded its progress deadline

The rollout waited ten minutes for new Pods to become available. Read the Progressing condition, then fix image pulls, probes, quota, and scheduling.

~5 min readKubernetes
#kubernetes#deployment#rollout#kubectl
Bold white headline reading ROLLOUT STUCK with a Kubernetes deployment crate blocked at an amber progress gate on the right.

Introduction & Quick Summary

CI fails at the last step with one line:

error: deployment "web" exceeded its progress deadline

kubectl rollout status deployment/web waited for the Deployment to make progress and gave up. This is not an API error and not a YAML error: the Deployment was created, and its ReplicaSet exists. The controller decided that no new Pod became available before progressDeadlineSeconds elapsed, which defaults to 600 seconds.

Where it appears:

  • A pipeline running kubectl rollout status after kubectl apply.
  • A new image that cannot be pulled, so the new ReplicaSet never becomes available.
  • Pods that start and crash in a loop before passing readiness.
  • A rollout blocked by a PodDisruptionBudget, a ResourceQuota, or unschedulable nodes.
  • A readiness probe that points at the wrong port or path, so the container is running but never Ready.

Quick answer: read the Deployment's Progressing condition and the ReplicaSet events first, fix the reason the new Pods are unavailable, and only then rerun. Raising the timeout while Pods keep crashing only delays the same failure by ten minutes.

Core Mechanics, Signatures & Reproducible Setup

A Deployment rollout progresses when its new ReplicaSet scales up and at least the minimum available Pods pass readiness. The Deployment controller compares that state with progressDeadlineSeconds; when nothing changes in that window it sets:

status: conditions: - type: Progressing status: "False" reason: ProgressDeadlineExceeded message: ReplicaSet "web-6f9c8b7d5" has timed out progressing.

kubectl rollout status returns exit code 1 for exactly that condition (and 0 once the rollout completes), which is why it is the standard gate in CI.

Reproduce on any cluster with a deliberately broken image:

bash
kubectl create deployment web --image=nginx:1.27 kubectl set image deployment/web nginx=nginx:does-not-exist kubectl rollout status deployment/web --timeout=60s # error: deployment "web" exceeded its progress deadline

Then read what actually happened, in this order:

bash
kubectl get deployment web -o wide kubectl get replicaset -l app=web kubectl describe deployment web | sed -n '/Conditions:/,/Events:/p' kubectl describe pod -l app=web

The condition message names the stuck ReplicaSet; the Pod events name the reason. The two together are the whole diagnosis.

The condition reasons you will meet:

ReasonMeaningFirst command
ProgressDeadlineExceededno availability change within the deadlinekubectl describe rs
NewReplicaSetAvailablerollout finishednone, this is success
ReplicaSetUpdatednew ReplicaSet scaled, Pods not ready yetkubectl get pods
DeploymentPausedrollout paused by a kubectl rollout pausekubectl rollout resume

Key Comparison Table

What actually blocks a rollout, ranked by frequency:

Symptom in Pod eventsRoot causeFix
ErrImagePull / ImagePullBackOffwrong tag, private registry, missing imagePullSecretsfix tag or credentials
FailedSchedulinginsufficient CPU/memory, taint, affinityadjust requests or nodes
CrashLoopBackOffapplication exits before servingread kubectl logs --previous
Readiness probe failedwrong port, path, or startup timefix probe or add startupProbe
Forbidden: exceeded quotaResourceQuota or LimitRangeraise quota or lower requests
Pending with no eventsscheduler has no matching nodedescribe the Pod
context deadline exceeded on kubectl callsAPI server or webhook slowcheck admission webhooks

Timeout choices and their meaning:

SettingDefaultConsequence
progressDeadlineSeconds600controller marks the rollout failed after 10 min without progress
minReadySeconds0Pod counts as available the moment it is Ready
kubectl rollout status --timeoutnone (waits)client-side wait, independent of the controller
readinessProbe.initialDelaySeconds0a slow app reports not Ready until the first success
terminationGracePeriodSeconds30old Pods linger during a rolling update

Practical Edge Cases, Error Fixes & Deep Dive Code Examples

1. The image does not exist, and the deadline hides it

ImagePullBackOff never changes state quickly, so the controller sees "no progress" for ten minutes. Confirm the tag exists before rolling out:

bash
kubectl get deployment web -o jsonpath='{.spec.template.spec.containers[*].image}' kubectl describe pod -l app=web | grep -A3 "Events:"

For private registries, the error is 401 Unauthorized or pull access denied inside the event, and the fix is a imagePullSecrets entry on the pod template, not on the Deployment metadata:

spec: template: spec: imagePullSecrets: - name: registry-credentials

A secret that exists in another namespace is invisible: Secrets are namespaced.

2. Readiness probes that never pass

A container can be healthy and still never Ready, which keeps the rollout at zero available. A Java service that boots in 70 seconds with a 1-second initialDelaySeconds and no startupProbe is the canonical example:

spec: containers: - name: api readinessProbe: httpGet: path: /healthz port: 8080 periodSeconds: 5 failureThreshold: 3 startupProbe: # gives JVM boot time without weakening readiness httpGet: path: /healthz port: 8080 failureThreshold: 30 periodSeconds: 2

startupProbe disables the other probes until it succeeds, so a slow start does not produce a restart loop. Readiness then means "can serve traffic", which is what the Deployment needs.

3. A PodDisruptionBudget or quota blocks the new ReplicaSet

With maxUnavailable: 0 and a PDB of minAvailable: 3 on a 3-replica Deployment, nothing can be replaced. The events read Cannot create new pods: pods "web-..." is forbidden: exceeded quota or the old Pods simply never terminate. Check both objects before touching the Deployment:

bash
kubectl get pdb kubectl get resourcequota -o custom-columns=NAME:.metadata.name,HARD:.status.hard,USED:.status.used

For a rollout that must complete, allow one unavailable Pod (maxUnavailable: 25%), or scale the Deployment up by one before updating so the new Pod fits without removing an old one.

4. Rollouts that hang on scheduler constraints

FailedScheduling messages are explicit: 0/6 nodes are available: 3 Insufficient cpu, 3 node(s) had untolerated taint. The Deployment then waits, the deadline expires, and the cause is in the Pod description rather than in the Deployment status. Two fixes that avoid future failures:

spec: template: spec: topologySpreadConstraints: - maxSkew: 1 topologyKey: kubernetes.io/hostname whenUnsatisfiable: ScheduleAnyway # DoNotSchedule stalls rollouts labelSelector: matchLabels: app: web

ScheduleAnyway keeps the constraint advisory, so a cluster without enough spread still runs the Pods. DoNotSchedule turns every shortage into a failed rollout.

5. Rollback is a decision, not a retry

kubectl rollout undo restores the previous ReplicaSet template, which is right when the new image is broken and wrong when the cluster is full. Check the revision history first:

bash
kubectl rollout history deployment/web kubectl rollout undo deployment/web --to-revision=4 kubectl rollout status deployment/web --timeout=300s

A rollback also needs the old Pods to become available, so if the blocker was a node shortage, undo fails the same way. Fix capacity first when the events show scheduling problems.

Common Compilation/Runtime Mistakes & Version Gotchas

Raising progressDeadlineSeconds to make CI green. A longer deadline changes the wait, not the outcome: Pods that crash for ten minutes crash for thirty as well. Use the deadline as a signal and fix the unavailable Pods.

Trusting kubectl apply as a deployment success. apply returns after the API server accepts the object. Only rollout status (or a readiness gate such as Argo CD's health check) confirms that new Pods serve traffic. Put kubectl rollout status --timeout=180s in the pipeline and let it fail the job.

Using latest tags with imagePullPolicy: IfNotPresent. Nodes keep the cached image and the rollout looks successful while running old code. Use immutable tags, or imagePullPolicy: Always with a digest. kubectl get pod -o jsonpath='{.status.containerStatuses[*].imageID}' proves which digest is running.

Version differences worth knowing. progressDeadlineSeconds cannot be less than minReadySeconds, and the API rejects the object with a validation error rather than a warning. In Kubernetes 1.22 and later the apps/v1 Deployment is the only served version, so old extensions/v1beta1 manifests fail at apply time with no matches for kind. Newer kubectl versions changed the output of rollout status to print the replica counts as they change, but the exit code contract stayed the same — scripts that parse the text should read the condition instead.

Inspecting the manifests themselves. A rolled-out Deployment often carries a YAML mistake that only appears at run time, such as a probe path under the wrong key or an imagePullSecrets block in the wrong scope; validate the file with the YAML validator after editing. When comparing a working manifest with a broken one, use Diff to see the exact line that changed, and confirm registry tags respond with the cURL helper before blaming the cluster.

Reference material: kubectl rollout status and Deployment failed rollout.

Official references

primary documentation

The Kubernetes documentation that defines the behaviour this guide explains.

Try matching browser tools

All tools

Small utilities that fit Kubernetes work — they run entirely in this browser tab, so nothing you paste leaves your device.

All Kubernetes guides

More in Kubernetes

All Kubernetes guides

The guides filed next to this one in Kubernetes, in library order.