
Check rollout progress and history
- Check rollout status:
- View rollout history and revisions:
The
CHANGE-CAUSE column appears only if a change-cause was recorded during the update (historically via --record). That flag has been deprecated in newer kubectl versions and may not be set.Deployment update strategies
There are two common update strategies for Deployments:- Recreate: Kubernetes scales down the old ReplicaSet to zero replicas, then scales up the new ReplicaSet. This approach can cause downtime during the transition.
- RollingUpdate (default): Kubernetes incrementally replaces old Pods with new Pods so that the application stays available during the upgrade.
RollingUpdate by default.
By default, Deployments use the RollingUpdate strategy to avoid downtime during upgrades.

How to update a Deployment
“Updating” a Deployment means changing the pod template: for example, updating the container image, changing labels, or modifying replica counts. Two common approaches:- Update the manifest and apply:
- Change the image directly:
kubectl set image updates the live Deployment in the cluster but does not update your local manifest file — this can cause drift between your repository and cluster state.
If you use
kubectl set image or other imperative commands, remember to update your source manifest to avoid drift between your Git/manifest and the cluster.Inspecting Deployment details
Usekubectl describe deployment to inspect a Deployment’s strategy, replica counts, annotations, and controller events.
Example kubectl describe output for a Recreate strategy:
kubectl describe output for a RollingUpdate strategy:
How Deployments upgrade under the hood
- Creating a Deployment (for example, with five replicas) creates a ReplicaSet.
- The ReplicaSet creates Pods based on the pod template.
- When you change the pod template, the Deployment creates a new ReplicaSet and moves Pods from the old ReplicaSet to the new one according to the chosen strategy (Recreate or RollingUpdate). The old ReplicaSet typically remains in the cluster so you can roll back.
