Issue facing while creating kubernetes cluster thorugh kubeadm

While joining worker node with master node it get joined but when I do
kubectl get nodes
facing this issue “The connection to the server localhost:8080 was refused - did you specify the right host or port?”

It looks like your’re facing similar problem to this one, so look at those solutions

Yes that is the issue which I specify