modified: README.md

This commit is contained in:
Márcio Fernandes
2026-08-23 03:28:12 +00:00
parent b2d31efc1d
commit f4fa863b88
+10
View File
@@ -9,6 +9,7 @@ Kubernetes is an opensource platform that automates the deployment, scaling,
- [Create an pod](#create-an-pod)
- [Get Pod](#get-pod)
- [delete Pod](#delete-pod)
- [delete all pods with prefix](#delete-all-pods-with-prefix)
- [OOMKilled](#oomkilled)
- [Attach to an pod](#attach-to-an-pod)
- [Run command on pod](#run-command-on-pod)
@@ -247,6 +248,15 @@ echo $POD_NAME
kubectl delete pod -n appNamespace -l app=myAppName
```
### delete all pods with prefix
``` bash
kubectl delete pod -n <NAMESPACE> \
$(kubectl get pods -n <NAMESPACE> \
-o jsonpath='{range .items[*]}{.metadata.name}{"\n"}{end}' \
| grep '^PREFIX')
```
### OOMKilled
**list all OOMKilled:**