title: nginx ingress controller 0.26.1 returns 504 (timeout while connecting to upstream) on GKE v1.14
body: <p>I recently upgraded my gke cluster to 1.14.x and nginx ingress to the latest version 0.26.1. At some point my ingresses stopped working.</p>
  
  <p>For instance, when trying to access Nexus with <code>curl INGRESS_IP -H "host:nexus.myorg.com"</code>, these are the ingress controller logs:</p>
  
  <pre><code>2019/11/07 08:35:49 [error] 350#350: *2664 upstream timed out (110: Connection timed out) while connecting to upstream, client: 82.81.2.76, server: nexus.myorg.com, request: "GET / HTTP/1.1", upstream: "http://10.8.25.3:8081/", host: "nexus.myorg.com"
  2019/11/07 08:35:54 [error] 350#350: *2664 upstream timed out (110: Connection timed out) while connecting to upstream, client: 82.81.2.76, server: nexus.myorg.com, request: "GET / HTTP/1.1", upstream: "http://10.8.25.3:8081/", host: "nexus.myorg.com"
  2019/11/07 08:35:59 [error] 350#350: *2664 upstream timed out (110: Connection timed out) while connecting to upstream, client: 82.81.2.76, server: nexus.myorg.com, request: "GET / HTTP/1.1", upstream: "http://10.8.25.3:8081/", host: "nexus.myorg.com"
  82.81.2.76 - - [07/Nov/2019:08:35:59 +0000] "GET / HTTP/1.1" 504 173 "-" "curl/7.64.1" 79 15.003 [some-namespace-nexus-service-8081] [] 10.8.25.3:8081, 10.8.25.3:8081, 10.8.25.3:8081 0, 0, 0 5.001, 5.001, 5.001 504, 504, 504 a03f13a3bfc943e44f2df3d82a6ecaa4
  </code></pre>
  
  <p>As you can see it tries to connect three times to 10.8.25.3:8081 which is the pod IP, timing out in all of them.</p>
  
  <p>I've sh'ed into a pod and accessed the pod using that same IP with no problem: <code>curl 10.8.25.3:8081</code>. So the service is set up correctly.</p>
  
  <p>This is my Ingress config:</p>
  
  <pre><code>apiVersion: networking.k8s.io/v1beta1
  kind: Ingress
  metadata:
    name: my-ingress
    namespace: some-namespace
    annotations:
      kubernetes.io/ingress.class: nginx
      nginx.ingress.kubernetes.io/ssl-redirect: "true"
      nginx.ingress.kubernetes.io/add-base-url: "true"
      nginx.ingress.kubernetes.io/proxy-body-size: 30M
  spec:
    rules:
    - host: nexus.myorg.com
      http:
        paths:
        - backend:
            serviceName: nexus-service
            servicePort: 8081
  </code></pre>
  
  <p>Any idea how to troubleshoot of fix this?</p>