Kubeadm 初始化时候报的警告信息 detected "cgroupfs" as the Docker cgroup driver ···
· 技术积累 · Docker kubernetes

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

本文最后更新时间 2023-02-13
文章链接地址:
https://me.jinchuang.org/archives/1152.html
本站文章除注明[转载|引用|原文]出处外,均为本站原生内容,转载前请注明出处


留言