Sometimes a Kubernetes pod may get stuck in the terminating state after issuing the delete command.

To resolve this issue, we can forcefully delete the pod. The command is given below.

kubectl delete pods --grace-period=0 --force <pod_name> -n <namespace> 

Now list the pods using the below command and see whether the pod got deleted or not.

kubectl get pods -n <namespace>

I hope this tip is useful. Feel free to comment if you have any questions or suggestions.