modified: README.md
This commit is contained in:
@@ -9,6 +9,7 @@ Kubernetes is an open‑source 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:**
|
||||
|
||||
Reference in New Issue
Block a user