Fixing aws eks pod evicted because of disk pressure

When working with AWS EKS, we might cause with disk pressure warning  when describing the “Evicted” pod (out of resource warning from aws eks).

kubectl describe pod ingress-nginx-controller-xxx -n ingress-nginx

Status: Failed
Reason: Evicted
Message: Pod The node had condition: [DiskPressure].

describe pod status

You can edit the volume size param as below (via cloudformation)

eks worker node edit cloudformation stack (increase to 20GB – EBS volume size)

The cloudformation template above related to this template file.

After increasing the storage size of the node (~ an ec2 instance), now “Evicted” pod (DiskPressure) will disappear.

Hope this well hope who is facing with this issue on AWS EKS 😉



Leave a Reply

Your email address will not be published. Required fields are marked *