https://pulumi.com logo
#kubernetes
Title
# kubernetes
g

gorgeous-elephant-23271

05/10/2020, 1:15 PM
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

better-rainbow-14549

05/11/2020, 7:19 AM
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

gorgeous-elephant-23271

05/11/2020, 1:08 PM
ah cool, thanks!
a

ancient-megabyte-79588

05/13/2020, 4:38 PM
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. 😄
5 Views