mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-01-16 23:00:51 +00:00
feat: add Kubernetes cheatsheet for pod cleanup commands
This commit is contained in:
parent
7e887bd4cd
commit
94dacc20db
1 changed files with 11 additions and 0 deletions
11
HelmChart/Docs/Kubernetes.md
Normal file
11
HelmChart/Docs/Kubernetes.md
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# Kubernetes Cheatsheet
|
||||
|
||||
### Cleanup
|
||||
|
||||
Delete Evited, Error or ContainerStatusUnknown Pods
|
||||
|
||||
```bash
|
||||
kubectl get pods --field-selector=status.phase=Failed | grep Evicted | awk '{print $1}' | xargs kubectl delete pod
|
||||
kubectl get pods --field-selector=status.phase=Failed | grep Error | awk '{print $1}' | xargs kubectl delete pod
|
||||
kubectl get pods --field-selector=status.phase=Failed | grep ContainerStatusUnknown | awk '{print $1}' | xargs kubectl delete pod
|
||||
```
|
||||
Loading…
Add table
Reference in a new issue