how to debug evicted pod on k8s

AhmFM picture AhmFM · Nov 26, 2018 · Viewed 9.9k times · Source

Team, I searched some but could not get much as am new to k8s. my pods are evicted and I get message as "Status: Failed Reason: Evicted Message: The node was low on resource: nodefs."

any helm how can I figure out what is going on?

Answer

ZPrime picture ZPrime · Nov 26, 2018

Run kubectl describe pod <pod name> and look for the node name of this pod. Followed by kubectl describe node <node-name> that will show what type of resource cap the node is hitting under Conditions: section.

From my experience this happens when the host node runs out of disk space.