perform kubeadm init Cluster initialization encountered :
[WARNING IsDockerSystemdCheck]: detected “cgroupfs” as the Docker cgroup driver. The recommended driver is “systemd”.
[ Warning IsDockerSystemdCheck]: detected “cgroupfs” As Docker cgroup The driver . The recommended driver is “systemd”.
So let’s change the driver .
resolvent : modify docker
because Ubuntu No default settings root, So set it up root user
sudo passwd root
After entering the password , Switch root user :su root
stay /etc/docker Create daemon.json And edit :
mkdir /etc/docker/daemon.json
Add the following :
{
"exec-opts":["native.cgroupdriver=systemd"]
}
restart docker
systemctl restart docker
systemctl status docker