Red Hat Bugzilla – Bug 1312433
[RFE] garbage collect stale replication controllers
Last modified: 2016-09-28 09:12:54 EDT
Description of problem:
Currently each deployment leaves a replication controller behind for rollback purposes. Eventually this leads to etcd getting filled with stale data. Also, if quotas are enforced, deployments will soon stop working due to replication controllers piling up, and the only way to clean them up is using "oadm prune"
Version-Release number of selected component (if applicable):
Allow setting replication controller limit per project or per deployment.
upstream pull request was merged:
*** Bug 1326529 has been marked as a duplicate of this bug. ***
Related gh issue: https://github.com/openshift/origin/issues/6731
Deployment cleanup policy was added in https://github.com/openshift/origin/issues/8691
Michal, does that satisfy this?
Yes, dc.spec.revisionHistoryLimit satisfies this bug.
Confirmed with OCP , the issue has fixed:
Auto cleanup the first RC, only retain the latest 3 RC;
oc get rc
NAME DESIRED CURRENT AGE
history-limit-3 0 0 9m
history-limit-4 0 0 7m
history-limit-5 1 1 7m