在创建K8s集群时,子节点加入master提示:detected “cgroupfs” as the Docker cgroup driver. The recommended driver is “systemd”. Please follow the guide at https://kubernetes.io/docs/setup/cri/

在子节点中修改或创建

vi /etc/docker/daemon.json,加入下面的内容:

{
"exec-opts": ["native.cgroupdriver=systemd"]
}

重启docker

systemctl restart docker