Kubernetes cluster The connection to the server localhost:8080 was refused - did you specify the right host or port?

I have Installed Kubernetes latest version in my server. Once system gets restarted, im getting this error. Kindly help on this

The connection to the server localhost:8080 was refused - did you specify the right host or port?

Check system IP and IP configured in kubernetes config file, are they same.

Yes i have checked both are same only.

Could anyone share the complete installation steps for kubernetes.

For avoiding these issues