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
|
kubectl get pods --all-namespaces --field-selector=status.phase=Failed --no-headers | wc -l
|
||||||
```
|
```
|
||||||
|
|
||||||
Delete
|
**Delete all failed pods.**
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
count=0
|
count=0
|
||||||
@@ -321,10 +321,11 @@ done
|
|||||||
### delete all pods with prefix
|
### delete all pods with prefix
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
kubectl delete pod -n <NAMESPACE> \
|
NAMESPACE=monitoring
|
||||||
$(kubectl get pods -n <NAMESPACE> \
|
kubectl delete pod -n ${NAMESPACE} \
|
||||||
|
$(kubectl get pods -n ${NAMESPACE} \
|
||||||
-o jsonpath='{range .items[*]}{.metadata.name}{"\n"}{end}' \
|
-o jsonpath='{range .items[*]}{.metadata.name}{"\n"}{end}' \
|
||||||
| grep '^PREFIX')
|
| grep '^alloy')
|
||||||
```
|
```
|
||||||
|
|
||||||
### OOMKilled
|
### OOMKilled
|
||||||
|
|||||||
Reference in new issue
Block a user