左耳的博客

设置背景图片

k8s

k8s
k8s for ns in `kubectl get ns | awk 'NR>=2{print $1}'` ; do kubectl -n $ns get pod |grep -v -E "Running|Completed" | awk 'NR>=2{print $1}' | xargs kubectl -n $ns delete pod --force --grace-period=0 ;done