- Disable swap
- 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.
sudo systemctl restart docker
sudo systemctl restart kubelet