fix revisionHistoryLimit default value to 10 (#8036)

pull/8040/merge
Tim Zhang 2018-04-10 23:54:11 +08:00 committed by k8s-ci-robot
parent 56bf362a3e
commit e8bc565959
1 changed files with 1 additions and 1 deletions

View File

@ -818,7 +818,7 @@ to a previous revision, or even pause it if you need to apply multiple tweaks in
You can set `.spec.revisionHistoryLimit` field in a Deployment to specify how many old ReplicaSets for
this Deployment you want to retain. The rest will be garbage-collected in the background. By default,
all revision history will be kept. In a future version, it will default to switch to 2.
it is 10.
**Note:** Explicitly setting this field to 0, will result in cleaning up all the history of your Deployment
thus that Deployment will not be able to roll back.