Kubectl Tip #2

purge all pods in a kubernetes namespace that match a prefix and are older than a defined date

This blog series is for quick posts of occasionally useful kubectl commands. I hope you find a few of these tips helpful.

The Command

This one liner is similar to last week’s but might show you some additional functionality that could help you figure out more specific solutions you might be looking for.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store