I’m encountering the same issue.
user@sqa02:/etc/kubernetes$ mkdir -p $HOME/.kube user@sqa02:/etc/kubernetes$ sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config cp: cannot stat '/etc/kubernetes/admin.conf': No such file or directory
root@sqa03:~# kubectl cluster-info Kubernetes master is running at http://localhost:8080 To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'. The connection to the server localhost:8080 was refused - did you specify the right host or port?
root@sqa03:~# curl localhost:8080 curl: (7) Failed to connect to localhost port 8080: Connection refused
To reproduce, follow the instructions provided on this techrepublic article.