connection to the server 10.0.0.10:6443 was refused - did you specify the right host or port?
NOTES: if you get connection to the server host refused follow the below commands as root
1. sudo -i
2. swapoff -a
3. exit
4. strace -eopenat kubectl version