Openshift 3.11 : Force delete pods

Gloria Palma González
1 min readJan 10, 2019

--

ZatoryPrivate

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.

До следующего раза :)

--

--

Gloria Palma González
Gloria Palma González

Written by Gloria Palma González

My life is a paradigm: I can do anything. IT engineer, melomaniac, in love: #Infrastructure #OpenSource #CommunityLeadershipTeams #SoftwareEngineering

No responses yet