<p>Was there a recent change to Nginx Ingress? Out of the blue I'm now getting "Connection refused" errors. I thought it was my own configuration which worked on a previous cluster.</p>

<p>Instead I decided to follow this tutorial <a href="https://cloud.google.com/community/tutorials/nginx-ingress-gke" rel="noreferrer">GKE NGINX INGRESS</a> and I'm getting the same result.</p>

<pre><code>$ kubectl get deployments --all-namespaces
NAMESPACE     NAME                            DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE
default       hello-app                       1         1         1            1           13m
default       nginx-ingress-controller        1         1         1            1           12m
default       nginx-ingress-default-backend   1         1         1            0           12m
</code></pre>

<p>I see the default-backend isn't running but I don't know enough about Kubernetes to know if that's what's preventing everything from working properly.</p>

<pre><code>$ kubectl get svc
NAME                            TYPE           CLUSTER-IP      EXTERNAL-IP    PORT(S)                      AGE
hello-app                       ClusterIP      10.31.255.90    &lt;none&gt;         8080/TCP                     14m
kubernetes                      ClusterIP      10.31.240.1     &lt;none&gt;         443/TCP                      19m
nginx-ingress-controller        LoadBalancer   10.31.251.198   35.227.50.24   80:31285/TCP,443:30966/TCP   14m
nginx-ingress-default-backend   ClusterIP      10.31.242.167   &lt;none&gt;         80/TCP                       14m
</code></pre>

<p>Finally:</p>

<pre><code>$ kubectl get ing
NAME               HOSTS     ADDRESS         PORTS     AGE
ingress-resource   *         35.237.184.85   80        10m
</code></pre>

<p>According to the tutorial I should just be able to go to <a href="http://35.237.184.85/hello" rel="noreferrer">here</a> to receive a 200 and <a href="http://35.237.184.85/test" rel="noreferrer">here</a> to get a 404.</p>

<p>I've left the links live so you all can see them.</p>

<pre><code>$ curl -I http://35.237.184.85/hello
curl: (7) Failed to connect to 35.237.184.85 port 80: Connection refused
</code></pre>

<p>I swear everything worked before and the only thing I can think of is that something from the teller install of nginx-ingress changed.</p>

<p>Please, any help is appreciated! Thank you in advance!</p>

jmvbxx
<p>That's because you are trying the request against the IP address created by the Ingress. Your entrypoint is the LoadBalancer type service created IP.</p>

<p>Try <code>curl -I http://35.227.50.24/hello</code>. That's where you will get 200.</p>
