After every reboot my kubernetes cluster does not work fine and I get
The connection to the server 192.168.1.4:6443 was refused - did you specify the right host or port?
I have 4 ubuntu on baremetal one of them is master and 3 worker and I turned off swap and disabled it. and I read somewhere I should run this command two solve it
sudo -i
swapoff -a
exit
strace -eopenat kubectl version
and it is work. But why this was happening?