My kubernetes pods are Evicted repetitively

7/23/2021

I have a k8s environment, where I am running 3 masters and 7 worker nodes. Daily my pods are in evicted states due to disk pressure.

I am getting the below error on my worker node.

Message:        The node was low on resource: ephemeral-storage.
Status:         Failed
Reason:         Evicted
Message:        Pod The node had condition: [DiskPressure].

But my worker node has enough resources to schedule pods.

-- Anvesh Muppeda
amazon-ec2
amazon-web-services
devops
kubernetes
kubernetes-pod

1 Answer

7/28/2021

Having analysed the comments it looks like pods go in the Evicted state when they're using more resources then available depending on a particular pod limit. A solution in that case might be manually deleting the evicting pods since they're not using resources at that given time. To read more about Node-pressure Eviction one can visit the official documentation.

-- Jakub Siemaszko
Source: StackOverflow