Skip to content

Commit 6a7df0d

Browse files
committed
Add note about deployment cleanup policy
Signed-off-by: Adrian Aneci <[email protected]>
1 parent 5de96d9 commit 6a7df0d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,6 +1079,14 @@ 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
1086+
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 >}}
1089+
10821090
## Canary Deployment
10831091

10841092
If you want to roll out releases to a subset of users or servers using the Deployment, you

0 commit comments

Comments
 (0)