modified: README.md
This commit is contained in:
1 parent
dde2924e95
commit
f3e73cbb39
1 file changed
+5
-4
@@ -299,7 +299,7 @@ List all.
|
||||
kubectl get pods --all-namespaces --field-selector=status.phase=Failed --no-headers | wc -l
|
||||
```
|
||||
|
||||
Delete
|
||||
**Delete all failed pods.**
|
||||
|
||||
``` bash
|
||||
count=0
|
||||
@@ -321,10 +321,11 @@ done
|
||||
### delete all pods with prefix
|
||||
|
||||
``` bash
|
||||
kubectl delete pod -n <NAMESPACE> \
|
||||
$(kubectl get pods -n <NAMESPACE> \
|
||||
NAMESPACE=monitoring
|
||||
kubectl delete pod -n ${NAMESPACE} \
|
||||
$(kubectl get pods -n ${NAMESPACE} \
|
||||
-o jsonpath='{range .items[*]}{.metadata.name}{"\n"}{end}' \
|
||||
| grep '^PREFIX')
|
||||
| grep '^alloy')
|
||||
```
|
||||
|
||||
### OOMKilled
|
||||
|
||||
Reference in new issue
Block a user