Hello I was working on deploying Kubeadm provisioning with VM and Vagrant and it . . .

Emidio Parziale:
Hello I was working on deploying Kubeadm provisioning with VM and Vagrant and it keeps failing during Kubeadm init because the Kubelet is not running or failing. I followed the steps shown in the demo but it is not working. Do we have to do anything configuring the cgroup driver? I used Docker as the container runtime.

Mohamed Ayman:
Hello @Emidio Parziale

Try

  1. rm /etc/docker/daemon.json

  2. run the hostname -i to get the IP of the interface

  3. you need to configure the Docker daemon, in particular to use systemd for the management of the container’s cgroups

cat <<EOF | sudo tee /etc/docker/daemon.json
{
  "exec-opts": ["native.cgroupdriver=systemd"],
  "log-driver": "json-file",
  "log-opts": {
    "max-size": "100m"
  },
  "storage-driver": "overlay2"
}
EOF

sudo systemctl daemon-reload
sudo systemctl restart docker

unnivkn:
Hi @Emidio Parziale please try to follow this doc: