mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
feat: add Kubernetes cheatsheet for pod cleanup commands
This commit is contained in:
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
|
||||
```
|
||||
Reference in New Issue
Block a user