1 개요[ | ]
- K8s Pod Evicted
Console
Copy
root@localhost:~$ kubectl get pod | grep mydb1
mydb1-6ffb94585b-b5jjx 1/1 Running 0 10m
mydb1-6ffb94585b-d9k2x 0/1 Evicted 0 20d
Console
Copy
root@localhost:~$ kubectl describe pod mydb1-6ffb94585b-d9k2x | grep Events: -A99
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning Evicted 10m kubelet, mynode01 The node was low on resource: memory. Container mydb1 was using 1291852Ki, which exceeds its request of 800Mi.
Normal Killing 10m kubelet, mynode01 Stopping container mydb1
Console
Copy
root@localhost:~$ kubectl get pod mydb1-6ffb94585b-d9k2x -oyaml | grep resources: -A6
resources:
limits:
cpu: "1"
memory: 1600Mi
requests:
cpu: 10m
memory: 800Mi
Console
Copy
root@localhost:~$ kubectl describe no | tail -5
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning EvictionThresholdMet 5m6s kubelet Attempting to reclaim memory
Normal NodeHasInsufficientMemory 4m59s kubelet Node cluster1-pool5-4a3ef369-d0kq status is now: NodeHasInsufficientMemory
- → 1291852Ki (1261.6 Mi)를 사용하여 limits.meromy 1600Mi에 도달하지 않았지만 노드에서 제공할 수 있는 메모리가 부족하여 Evicted
2 같이 보기[ | ]
3 참고[ | ]
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.