How do you handle evicted pods in your Kubernetes cluster?

0
6
Asked By SassyPanda82 On

I'm a senior DevOps engineer with a background in backend development, and I'm curious about how others in the community manage evicted pods in their Kubernetes clusters. I've been considering setting up a Kubernetes cron job to handle the cleanup of these evicted pods. We're currently using AWS EKS with Kubernetes version 1.32. I'd love to hear your experiences and thoughts on this!

2 Answers

Answered By DeschedulerDude On

I personally use the descheduler for this purpose. It's super handy, just make sure to configure it correctly!

EagerEngineer88 -

Absolutely! I do the same—just adjusting the settings can make a big difference.

CaptainCleanup84 -

Yeah, it works really well! Just be careful with the configurations.

Answered By CuriousCoder77 On

Kubernetes actually cleans up evicted pods on its own most of the time. What kind of cleanup are you specifically thinking about that it doesn't handle?

ThoughtfulTechie91 -

I've noticed that in earlier Kubernetes versions, I had to manually clean up dead pods, especially when they were left over after some memory-intensive tasks. Now I generally ensure I have limits set, so I don't run into that.

CleanupMaster42 -

You might have to wait for garbage collection to kick in, but I've often ended up having to manually clear them myself before that happens.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.