The connection to the server was refused - did you specify the right host or port? i run command sudo swapoff -a i also put .kube/config file in home directory of user still facing issue

Asking for help? Comment out what you need so we can get more information to help you!

Cluster information:

Kubernetes version:v1.29.0
Cloud being used: (put bare-metal if not on a public cloud)
Installation method:kubeadm
Host OS:
CNI and version:10-calico.conflist 10-flannel.conflist calico-kubeconfig
CRI and version: containerd

You can format your yaml by highlighting it and pressing Ctrl-Shift-C, it will make your output easier to read.