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

try 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: