Nginx ingress server exposed as nodeport with external ip is reachable from within the cluster, but not from outside

10/3/2019

I am running a kubernetes cluster using kubeadm and virtualbox. To manage traffic with the outside world, I have an nginx service as a nodeport running with an external ip.

$kubectl get svc --all-namespaces

ingress-nginx   nginx-ingress          NodePort    10.97.117.136   192.168.290.89 80:31738/TCP,443:32320/TCP,22:31488/TCP   26m

When I

curl 10.97.117.136:80

from inside the cluster,

I get

default backend - 404.

However, when I

curl 192.168.290.89:31738

from outside the cluster,

I get

curl: (7) Failed to connect to 192.168.290.89 port 31738: Connection timed out

Does anyone understand this behavior and know how to remedy it?

-- Paul Rousseau
kubernetes
nginx-ingress

0 Answers