Openshift 3.11 : Force delete pods
1 min readJan 10, 2019
This time I will post a simple command to delete pods which never die :( in a simple way.
We are working with Gluster and today we need to modify Gluster Demon sets and restart pods, but they never stopped and restart! And then, I used these commands:
$ oc delete pod/glusterblock-registry-provisioner-dc-1-9mrpd --grace-period=0 --force
$ oc delete pod/glusterfs-registry-bhc7g --grace-period=0 --force
$ oc delete pod/glusterfs-registry-dc28g --grace-period=0 --force
$ oc delete pod/glusterfs-registry-gclsf --grace-period=0 --force
$ oc delete pod/heketi-registry-1-hjtbg --grace-period=0 --force
Read about grace-period=0 and force.
It’s work for me, and you can use with others pods.
I hope to help you.
До следующего раза :)