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.
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.