Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Add revisionHistoryLimit to deployments #53

Open
kfferrando opened this issue Nov 14, 2019 · 1 comment
Open

Add revisionHistoryLimit to deployments #53

kfferrando opened this issue Nov 14, 2019 · 1 comment

Comments

@kfferrando
Copy link
Contributor

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
Copy link
Contributor Author

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

revisionHistoryLimit: 10

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant