cannot allocate memory

pod 启动报错: 

unable to ensure pod container exists: failed to create container for [kubepods burstable pod4eba687b-04cf-4c92-9388-6513ca270c07] : mkdir /sys/fs/cgroup/memory/kubepods/burstable/pod4eba687b-04cf-4c92-9388-6513ca270c07: cannot allocate memory, 

 

是bug,大概有3个方法。

记录最省事的,修改配置文件,添加红色内容

# cat /etc/default/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="crashkernel=auto rhgb quiet net.ifnames=0 biosdevname=0 intel_pstate=disable cgroup.memory=nokmem"
GRUB_DISABLE_RECOVERY="true"

 

生效:

/usr/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg

 

重启:

reboot

posted @ 2023-06-02 08:46  Mloading  阅读(427)  评论(0)    收藏  举报