<p>I created cluster in gcloud with three nodes. So far so good.Thereafter i tried to run the pod.. it is giving error.. I found out the kubectl is not configured correct.. Getting following error when I try to run the pod.. Appreciate any help in this regard.</p>

<p>error: could not read an encoded object from nodejs.yaml: unable to connect to a server to handle "pods": couldn't read version from server: Get <a href="http://localhost:8080/api" rel="nofollow">http://localhost:8080/api</a>: dial tcp 127.0.0.1:8080: connection refused</p>

<p>thx</p>

<p>If your kubectl configuration is incorrect after creating a cluster, you can always run <code>gcloud container clusters get-credentials NAME</code> (see <a href="https://cloud.google.com/container-engine/docs/clusters/operations#configuring_kubectl" rel="noreferrer">configuring kubectl</a>) to restore a working kubeconfig file. </p>
