I've been setting up a small kubernetes cluster. I have 3 CentOS VMs, one master and 2 minions. Kubernetes runs in docker containers. I set it up with help of the following 2 articles:
- http://kubernetes.io/docs/getting-started-guides/docker-multinode/master/
- http://kubernetes.io/docs/getting-started-guides/docker-multinode/worker/
Now I'm trying to install the nginx ingress controller. I work with github.com/kubernetes/contrib/tree/master/ingress/controllers/nginx on revision 6c87fed (I also tried the tags 0.6.0 and 0.6.3 - same behavior).
I run the following commands according to the README.md from the above link:
kubectl create -f examples/default-backend.yaml
kubectl expose rc default-http-backend --port=80 --target-port=8080 --name=default-http-backend
kubectl create -f examples/default/rc-default.yaml
Now the pod for the ingress controller comes up properly at first but fails after about 30 seconds or so. The log says
kubectl logs nginx-ingress-controller-ttylt
I0615 11:21:20.641306 1 main.go:96] Using build: https://github.com/bprashanth/contrib.git - git-afb16a4
F0615 11:21:50.643748 1 main.go:125] unexpected error getting runtime information: timed out waiting for the condition
Sounds like its trying to connect to a nonexistent host or so. Any ideas what I can check or how to fix it?
Regards
Edit: As this seems to be a common problem: I should add that I checked for port 80 and 443 to be available on the nodes.