Pod keeps in terminating on a terminated EC2 instance

2/4/2016

I have created a Kubernetes cluster in AWS platform and using DaemonSets to create the Pod.

After an instance is terminated, the corresponding pod is still in Terminating states.

Anyone have idea of cleaning up such Terminating pod in kubernetes master?

-- Eric Ho
amazon-web-services
kubernetes

1 Answer

2/21/2016

You can always force delete a pod by providing kubectl delete pod NAME --grace-period=0. You can also delete the node (if you don't plan on bringing it back) with kubectl delete node NAME and the pods should get cleaned up.

-- Clayton
Source: StackOverflow