I am running (from Windows 8.1) Vagrant VM for CoreOS ( yungsang / coreos ).
I installed kubernetes according to the manual I found here and created json for pod using my images.
When I execute sudo ./kubecfg list /pods, I get the following error:
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
Same for sudo ./kubecfg -h http://127.0.0.1:8080 -c /vagrant/app.json create /pods
EDIT: Update
Instead of running the commands myself, I integrated into a stray file ( such as this ).
This makes kubernetes workable. HOWEVER, after some time, my wandering ssh connection closes. I reconnect, and any kubernetes commands I indicate the result with the same error as above.
EDIT 2: Update
I managed to run it again, however I'm not sure if it will work smoothly
I had to re-execute the following commands.
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
I believe apirusver actually needs a restart
What is the source of this timeout? (Where are any magazines I can find on this)
source
share