The connection to the server 192.168.1.2:6443 was refused - did you specify the right host or port?

sudo nano /etc/containerd/config.toml
Then find SystemdCgroup change its value from false to true

sudo systemctl restart containerd;sudo reboot
Check for details: