mozilla-it / sumo-infra

Infrastructure for support.mozilla.org
1 stars 3 forks source link

Add revisionHistoryLimit to deployments #53

Open kfferrando opened 4 years ago

kfferrando commented 4 years ago

We are leaving behind a replicaset every time we deploy, that never get cleaned up.

$ k get rs --all-namespaces | awk '{if ($3==0 && $4==0 && $5==0){print $1;}}' | sort | uniq -c 30 sumo-dev 30 sumo-prod 39 sumo-stage

Definining revisionHistoryLimit: <int> will ensure cleanup of stale RS.

kfferrando commented 4 years ago

It looks like this is being set with our version of k8s, but is probably a little high for our needs.

revisionHistoryLimit: 10