Skip to content

Commit faaae90

Browse files
adriananeciTim Bannister
andauthored
Update content/en/docs/concepts/workloads/controllers/deployment.md
Co-authored-by: Tim Bannister <[email protected]>
1 parent 6a7df0d commit faaae90

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

content/en/docs/concepts/workloads/controllers/deployment.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,13 +1079,15 @@ Explicitly setting this field to 0, will result in cleaning up all the history o
10791079
thus that Deployment will not be able to roll back.
10801080
{{< /note >}}
10811081

1082-
{{< note >}}
1083-
The cleanup will ONLY start after a deployment reaches a
1084-
[complete state](/docs/concepts/workloads/controllers/deployment/#complete-deployment)
1085-
For example, if pods are crash looping, and there are multiple rolling updates
1082+
The cleanup only starts **after** a Deployment reaches a
1083+
[complete state](/docs/concepts/workloads/controllers/deployment/#complete-deployment).
1084+
If you set `.spec.revisionHistoryLimit` to 0, any rollout nonetheless triggers creation of a new
1085+
ReplicaSet before Kubernetes removes the old one.
1086+
1087+
Even with a non-zero revision history limit, you can have more ReplicaSets than the limit
1088+
you configure. For example, if pods are crash looping, and there are multiple rolling updates
10861089
events triggered over time, you might end up with more ReplicaSets than the
1087-
`.spec.revisionHistoryLimit` because the deployment never reaches a complete state.
1088-
{{< /note >}}
1090+
`.spec.revisionHistoryLimit` because the Deployment never reaches a complete state.
10891091

10901092
## Canary Deployment
10911093

0 commit comments

Comments
 (0)