- Disable swap
swapoff -a - Make sure time is set correct matching the master node.
to check the date time run this command:
date "+%H:%M:%S %d/%m/%y"
if it is not correct set it using the command below:
sudo date --set="2021-01-16 19:43" - and most importantly the cause of all pain, set cgroup driver to use systemd for docker.
To ensure what cgroup dirver docker is using run the command below:# docker info | grep -i 'cgroup driver'
Cgroup Driver: cgroupfs
if its not systemd like you see above set it to systemd using this file: /etc/docker/daemon.json if file doesn't exist create it.
{ "exec-opts": ["native.cgroupdriver=systemd"], "log-driver": "json-file", "log-opts": { "max-size": "100m" }, "storage-driver": "overlay2" }
sudo systemctl restart docker
sudo systemctl restart kubelet
kubectl set env daemonset/calico-node -n kube-system
IP_AUTODETECTION_METHOD=interface=eth1