Manually placing a pod into Evicted state

7/9/2019

I'm developing a controller and need to test various conditions like evicted and failed pods.

Is there a handy way to force a pod into an evicted state for dev/test purposes?? I've tried forcing taint-based evictions, but in 1.13.1, that just terminates the pod and leaves it in a pending state. (we are using persistent volumes otherwise I assume it would reschedule to another node at this point)

-- Crashk1d
controller
kubernetes

0 Answers