ingress-nginx: Ingress - Unable to connect to LB on port 80
From @microadam on April 6, 2016 13:9
Following the examples mentioned here:
https://github.com/kubernetes/contrib/tree/master/ingress/controllers/nginx
I get everything created and running, however when I try and connect to my host on its external IP address and port 80, I just get connection refused.
Even trying to curl http://127.0.0.1
on the machine itself returns connection refused, so its like the load balancing Pod is not actually listening on the hosts port 80.
Anyone have any suggestions as to how to go about debugging?
Thanks a lot
Copied from original issue: kubernetes/contrib#717
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 2
- Comments: 24 (17 by maintainers)
Yes, that is what I did. I used a static nodePort in the ingress service so that the external firewall in front of the k8s cluster could simply be configured to loadbalance to the same destination port on each node.
From @microadam on April 11, 2016 20:11
@aledbf I am on k8s 1.2.1 currently. Running on a Linode VM. The setup I am using is done via ansible using this repo:
https://github.com/microadam/ansible-kubernetes-tinc
The IP address that I get from
kubectl get ing
is the public IP address of the machine that is running the ingress controller. Curling that from anywhere has the same issue…Please let me know if there is anything else I can provide to help debug.
Assuming that I shouldn’t expect to see anything listening on port 80 on the host machine when running
netstat
? (still trying to understand how various bits k8s work, especially the networking)Thanks