Deployments are great! However, they have the downside of creating a lot of obsolete replica sets. This is what I wind up with now:
$ kubectl get rs
deployment-name-920127227 0 0 0 33d
deployment-name-946622287 0 0 0 5d
deployment-name-949954325 0 0 0 40d
deployment-name-950161082 0 0 0 7d
deployment-name-991561338 0 0 0 35d
<repeat hundreds of times>
Is there a right way to get rid of these replica sets? I assume they're being kept around so if I ever decide to roll back to the deployment version from two months ago, it can happen.
(Obviously, I could just delete the replica sets, but I feel like that might be a bad idea if the deployment expects them to stick around.)