在Debian8 上 cgroup memory swapaccount 默认没有enable

会出现如

E0221 18:12:14.791503   16229 kubelet.go:1228] Failed to start ContainerManager system validation failed - Following Cgroup subsystem not mounted: [memory]


ContainerManager system 无法启动从而造成容器无法被启动


详见https://github.com/kubernetes/kubernetes/issues/9837


On Debian Jessie, we need to boot with these options: 更改GRUB_CMDLINE_LINUX


GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1"

然后update-grub更新grub的设置



https://docs.docker.com/installation/ubuntulinux/#memory-and-swap-accounting

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐