Hi there, I'm noticing that old replica sets aren'...
# kubernetes
g
Hi there, I'm noticing that old replica sets aren't being cleaned up after a successful deployment. I think it kinda makes sense as you'd want to be able to roll back to and old one on failure, but is there a standard way of cleaning these up?
b
there is a parameter for how many to save historically, iirc it defaults to 10
it cleans up any more than that by itself
g
ah cool, thanks!
a
Copy code
spec: {
  selector: { matchLabels: {app: "your-app"} },
  replicas: 1,
  revisionHistoryLimit: 2, <-- This controls that
👍 1
I just noticed how old this is.. so you've probably figured that out already. 😄