简体   繁体   中英

what should I do to find the pod evicted reason

Today when I checked the kube.netes cluster, some of the pod shows the status was evicted. But I only see the evicted status and could not found the detail logs why the pod was evicted. Disk Pressure? CPU pressure? what should I do to found the reason of the pod evicted?

you can try to look at logs of that particular pod. Do a describe on that pod and see if you find anything.

kubectl get pods -o wide try the above command to see on which node it was running and run a describe on that node and you find at-least some information related to the eviction.

Eviction is a process where a Pod assigned to a Node is asked for termination. One of the most common cases in Kube.netes is Preemption, where in order to schedule a new Pod in a Node with limited resources, another Pod needs to be terminated to leave resources to the first one.

So, to answer your question, the pod would have got evicted with limited CPU or memory resources allocated.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM