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

10/14/2019

I have followed the guide https://www.server-world.info/query?os=CentOS_7&p=kubernetes&f=1 for kubernetes configuration. When i run the command "kubectl version -o json" The subject error comes.

-- Yasir Iqbal ITS
kubernetes

1 Answer

10/14/2019

This usually means that either Minikube was unable to start or you have something wonky with your networking. Both require detailed debugging and are probably out of scope for a SO question since there is no single cause.

-- coderanger
Source: StackOverflow