Pods stuck at terminating status

0
986

Question:

I tried to delete a replication controller with 12 pods and I could see that some of the pods stay stuck at terminating status. My Kubernetes setup consists with one master and three minons installed in ubuntu vms. What could be the reason for this issue?

NAME        READY     STATUS        RESTARTS   AGE
pod-186o2   1/1       Terminating   0          2h
pod-4b6qc   1/1       Terminating   0          2h
pod-8xl86   1/1       Terminating   0          1h
pod-d6htc   1/1       Terminating   0          1h
pod-vlzov   1/1       Terminating   0          1h

Answer:

You can use following command to delete the POD forcefully.

kubectl delete pod <PODNAME> --grace-period=0 --force --namespace <NAMESPACE>

LEAVE A REPLY

Please enter your comment!
Please enter your name here