<p>I'm running (from Windows 8.1) a Vagrant VM for CoreOS (<a href="https://vagrantcloud.com/yungsang/boxes/coreos" rel="nofollow">yungsang/coreos</a>).</p>

<p>I installed kubernetes according to the guide I found <a href="https://coreos.com/blog/running-kubernetes-example-on-CoreOS-part-1" rel="nofollow">here</a> and created the json for the pod using my images.</p>

<p>When I execute <code>sudo ./kubecfg list /pods</code> I get the following error:</p>

<pre><code>F0909 06:03:04.626251 01933 kubecfg.go:182] Got request error: Get http://localhost:8080/api/v1beta1/pods?labels=: dial tcp 127.0.0.1:8080: connection refused
</code></pre>

<p>Same goes for <code>sudo ./kubecfg -h http://127.0.0.1:8080 -c /vagrant/app.json create /pods</code></p>

<p>EDIT: <strong>Update</strong></p>

<p>Instead of running the commands myself I integrated into the vagrant file (as <a href="http://qiita.com/yungsang/items/3cbab1c9a231a995a23d" rel="nofollow">such</a>) .</p>

<p>This makes kubernetes work fine. HOWEVER after some time my vagrant ssh connection gets closed off. I reconnect and any kubernetes commands I specify result in the same error as above.</p>

<p>EDIT 2: <strong>Update</strong></p>

<p>I managed to get it to run again, however I am unsure if it will run smoothly</p>

<p>I had to re-execute the following commands.</p>

<pre><code>sudo systemctl start etcd
sudo systemctl start download-kubernetes
sudo systemctl start apiserver
sudo systemctl start controller-manager
sudo systemctl start kubelet
sudo systemctl start proxy
</code></pre>

<p>I believe it is in fact the apiserver that needs restarting</p>

<p>What is the source of this "timeout"? (Where are any logs I can find for this matter)</p>

<p>Kubernetes development is moving insanely fast right now so this could be out of date by tomorrow.  With that in mind, the kubernetes folks recommend following one of their <a href="https://github.com/GoogleCloudPlatform/kubernetes/tree/master/docs/getting-started-guides" rel="nofollow">official installation guides</a>.  The best advice would be to start over fresh with one of the new installation guides but there are a few tips that I have learned doing this myself.</p>

<p>The first thing to note is that Kubecfg is being deprecated in favor of kubectl.  So for future reference if you want to get info about a pod you would run something like:</p>

<p><code>./kubectl get pods</code>.</p>

<p>With kubectl you will also need to set an env variable so kubectl know how to talk to the apiserver:</p>

<p><code>KUBERNETES_MASTER=http://IPADDRESS:8080</code>.</p>

<p>The easiest way to debug exactly what is going on if you are using CoreOS is to tail the logs for the service you are interested in.  So if you have a <code>kube-apiserver</code> unit you can look at what's goin on by running:</p>

<p><code>journalctl -f -u kube-apiserver</code></p>

<p>from the node that is running the apiserver.  If that service isn't running, which may be the case, you can start it with:</p>

<p><code>systemctl start kube-apiserver</code></p>
