Openshift : pods not being deleted

Magick picture Magick · Mar 14, 2016 · Viewed 7.9k times · Source

I have am using OpenShift 3, and have been trying to get Fabric8 setup.

Things havent been going to well, so I decided to remove all services and pods.

When I run

oc delete all -l provider=fabric8

The cli output claims to have deleted a lot of pods, however, they are still showing in the web console, and I can run the same command in the CLI again and get the exact same list of pods that OpenShift cli claims it deleted.

How do I actually delete these pods? Why is this not working as designed?

Thanks

Answer

Jordan Liggitt picture Jordan Liggitt · Mar 15, 2016

Deletion is graceful by default, meaning the pods are given an opportunity to terminate themselves. You can force a graceless delete with oc delete all --grace-period=0 ...