- 单个pod强制删除
kubectl delete pod [ podname ] --force --grace-period=0
- 删除所有处于Removing的pod(k8s中状态为Terminating)
kubectl get pod |grep Terminating |awk '{print $1}' |xargs kubectl delete pod --force --grace-period=0
kubectl delete pod [ podname ] --force --grace-period=0
kubectl get pod |grep Terminating |awk '{print $1}' |xargs kubectl delete pod --force --grace-period=0