update at 2024-11-04 14:55:25

main
roc 2024-11-04 14:55:25 +08:00
parent 507a8dc665
commit a9773142ad
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
<TabItem value="evicted" label="清理 Evicted 状态的 Pod">
``` bash
kubectl get pod -o wide --all-namespaces | awk '{if($4=="Evicted"){cmd="kubectl -n "$1" delete pod "$2; system(cmd)}}'
kubectl get pod -o wide --all-namespaces --no-headers | awk '{if($4=="Evicted"){cmd="kubectl -n "$1" delete pod "$2; system(cmd)}}'
```
</TabItem>
@ -14,7 +14,7 @@
<TabItem value="not-running" label="清理所有非 Running 状态的 Pod">
``` bash
kubectl get pod -o wide --all-namespaces | awk '{if($4!="Running"){cmd="kubectl -n "$1" delete pod "$2; system(cmd)}}'
kubectl get pod -o wide --all-namespaces --no-headers | awk '{if($4!="Running"){cmd="kubectl -n "$1" delete pod "$2; system(cmd)}}'
```
</TabItem>