Pods Failing with "cannot allocate memory" Error
Problem
Pods failing with "cannot allocate memory" error.
Environment
Platform9 Managed Kubernetes - All Versions
CentOS Linux 7
Answer
Error Observed
Following is the upstream issue link regarding this behavior Docker fails to start containers with cgroup memory allocation error.
Indicates that the fix for the issue [LLNL 7.5 Bug] slab leak causing a crash when using kmem control group should be in Kernel Version
3.10.0-1062.4.1 or later.However the discussion also talks about similar issues being present/reported on Kernel version above this.
One of the temporary workaround mentioned is to add the parameter
cgroup.memory=nokmemto theGRUB_CMDLINE_LINUXline in the configuration file/etc/default/grub. After that,
Long term solution can be to upgrade the Kernel version to the latest version and see if it resolves the issue OR contact the OS vendor for further assistance.
