I've launched kubernetes cluster using kops. It was working find and I started facing the following problem:
kubectl get pods
The connection to the server localhost:8080 was refused - did you specify the right host or port?
How do i solve this? It looks like kubernetes-apiserver is not running, How do i get this working?
kubectl run nginx --image=nginx:1.10.0
error: failed to discover supported resources: Get http://localhost:8080/apis/apps/v1beta1?timeout=32s: dial tcp 127.0.0.1:8080: connect: connection refused
Please suggest