kubeadm 初始化时候报的警告信息:
[preflight] Running pre-flight checks
[WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "systemd". Please follow the guide at https://kubernetes.io/docs/setup/cri/
解决
# 修改docker配置文件添加参数
# 设置默认cgroup组为systemd(centos7中有2个cgrounp组,cgroupfs和systemd)
/etc/docker/daemon.json
{
"exec-opts": ["native.cgroupdriver=systemd"]
}
# 重启docker
systemctl daemon-reload
systemctl restart docker
本文最后记录时间 2024-03-30
文章链接地址:https://wojc.cn/archives/1152.html
本站文章除注明[转载|引用|来源],均为本站原创内容,转载前请注明出处
文章链接地址:https://wojc.cn/archives/1152.html
本站文章除注明[转载|引用|来源],均为本站原创内容,转载前请注明出处