Clean up "Replica Sets" when updating deployments?

5/16/2016

Every time a deployment gets updated, a new replica set is added to a long list. Should the old rs be cleaned?

-- yuval
kubernetes

1 Answer

5/16/2016

Removing old replicasets is part of the Deployment object, but it is optional. You can set .spec.revisionHistoryLimit to tell the Deployment how many old replicasets to keep around.

-- rwehner
Source: StackOverflow