Kubernetes
You're viewing a free preview. Sign in free to read every script.
Why this exists A Pod that finishes — a completed one off Job, a container that crashed and was not restarted, one evicted for node pressure — uses no CPU and no memory afterward, but its object stays in etcd until…
Cleaning Up Evicted and Completed Pods
A plan-then-apply script that finds Pods stuck around after they finished for good — Succeeded, Failed, or Evicted — filtered by age, proven against a real completed Job Pod and a real failed one, correctly leaving a still-running Pod untouched.
Sign in free to read this script, along with the rest of the library.
Sign in free