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?
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.