Version/Environment (if relevant):
All versions on AWS/EKSIssue:
Customers find Pods stuck in ContainerCreating and/or liveness probes fail with an event in the kubectl describe which mentionserrno 524:
Root Cause:
There is a linux kernel memory leak bug in the EKS optimized AMI based on linux kernel version 5.10.x. The linux bug can be verified by usingcat /proc/sys/net/core/bpf_jit_limit and seeing what the limit currently is and by using cat /proc/vmallocinfo | grep bpf_jit | awk '{s+=$2} END {print s}', to see if the limit has been exceeded.
Example:
kernel-5.10.176-157.645.amzn2thrukernel-5.10.177-158.645.amzn where the rate of the memory leak is higher.”
Resolution:
AWS corrected the problem by patching by a new AMI Release AMI Release v20230501 awslabs/amazon-eks-ami, released May 3rd 2023. Temporary workaround is to runsysctl net.core.bpf_jit_limit=452534528 on all platform nodes by ssh’ing directly onto them.
The permanent fix is to get your EKS to use this AMI: Release AMI Release v20230501 awslabs/amazon-eks-ami