- Newest
- Most votes
- Most comments
Hello,
Your kubelet is evicting your pod to reclaim memory on your node to prevent memory starvation for other processes on the node.
The node pressure eviction process is selecting this particular pod for eviction because the pod's current memory usage at that particular time was more than the memory request specified in the container spec.
According to this doc, the kubelet uses the following parameters to determine the pod eviction order during the eviction process:
- Whether the pod's resource usage exceeds requests
- Pod Priority
- The pod's resource usage relative to requests
To remediate this problem, you could request for additional memory during the pod creation to make sure that your pod memory utilization stays below the memory request value.
You can also set memory limits for all of the containers in your cluster to stop them from taking up more memory than they should. If you are unsure about the right requests/limits, VPA can be helpful.
You will have to monitor all the processes running in your nodes to find out what processes are taking up excessive memory in your nodes.
I hope this is helpful. Please comment if you have any further questions. Thanks!
Relevant content
- Accepted Answerasked 2 months ago
- asked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 9 months ago