modified: README.md
This commit is contained in:
@@ -224,7 +224,7 @@ kubectl delete pod -n appNamespace -l app=myAppName
|
|||||||
|
|
||||||
### OOMKilled
|
### OOMKilled
|
||||||
|
|
||||||
**list all OOMKilled pods:**
|
**list all OOMKilled:**
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
kubectl get events --all-namespaces | grep -i "OOMKilled"
|
kubectl get events --all-namespaces | grep -i "OOMKilled"
|
||||||
@@ -236,6 +236,16 @@ kubectl get pods --all-namespaces \
|
|||||||
| grep OOMKilled
|
| grep OOMKilled
|
||||||
```
|
```
|
||||||
|
|
||||||
|
On cluster node
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo dmesg -T | grep -i kill
|
||||||
|
sudo dmesg -T | grep -Ei "oom|kill"
|
||||||
|
sudo journalctl -k | grep -Ei "oom|kill"
|
||||||
|
sudo journalctl -k --since "1 hour ago" | grep -Ei "oom|kill"
|
||||||
|
sudo journalctl -k -o short-iso | grep -Ei "oom|kill"
|
||||||
|
```
|
||||||
|
|
||||||
### Attach to an pod
|
### Attach to an pod
|
||||||
|
|
||||||
Attach connects your terminal to the main process of the container (PID 1), or another running process if specified.
|
Attach connects your terminal to the main process of the container (PID 1), or another running process if specified.
|
||||||
|
|||||||
Reference in New Issue
Block a user