title: k8s ingress can't route to service
body: <p>I install nginx ingress on k8s cluster , happend a unslovable problem on ingress route.</p>
  <p>There are 3 service backend on k8s cluster : 2 nginx service an 1 neo4j service .</p>
  <p>My ingress describe info is follow :</p>
  <pre><code>[root@es3 cafe_ingress]# kubectl describe ingress cafe-ingress
  Name:             cafe-ingress
  Namespace:        default
  Address:          192.168.59.155
  Default backend:  default-http-backend:80 (&lt;error: endpoints &quot;default-http-backend&quot; not found&gt;)
  TLS:
    cafe-secret terminates cafe.example.com
  Rules:
    Host              Path  Backends
    ----              ----  --------
    cafe.example.com
                      /tea      tea-svc:80 (10.244.0.25:80,10.244.1.11:80,10.244.2.15:80)
                      /coffee   coffee-svc:80 (10.244.0.24:80,10.244.2.14:80)
                      /neo4j    neo4j-v1-service:7474 (10.244.0.29:7474)
  Annotations:        Events:
    Type              Reason  Age               From                      Message
    ----              ------  ----              ----                      -------
    Normal            CREATE  22m               nginx-ingress-controller  Ingress default/cafe-ingress
    Normal            UPDATE  5s (x3 over 22m)  nginx-ingress-controller  Ingress default/cafe-ingress
  
  </code></pre>
  <p>And , I access <code>tea</code> or <code>coffee</code> service ,  this ingress on route <code>coffee</code> or <code>tea</code>, it works correctly, I can get response from service <code>tea</code> or <code>coffee</code> on browser :
  <a href="https://i.stack.imgur.com/ZGc4A.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZGc4A.png" alt="enter image description here" /></a>
  <a href="https://i.stack.imgur.com/nvgn4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nvgn4.png" alt="enter image description here" /></a></p>
  <p>However , where access of <code>neo4j</code>, I can't get response :
  <a href="https://i.stack.imgur.com/2BugZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2BugZ.png" alt="enter image description here" /></a></p>
  <p>From pod <code>nginx-ingress-controller</code>  log output messages, got 404 code ,  follow :</p>
  <pre><code>2020-12-17T07:28:10.861510393Z 10.244.0.0 - - [17/Dec/2020:07:28:10 +0000] &quot;GET /neo4j HTTP/1.1&quot; 404 0 &quot;-&quot; &quot;Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36&quot; 480 0.004 [default-neo4j-v1-service-7474] [] 10.244.0.29:7474 0 0.005 404 17a02ccd8a65d5ff396c78e819f3c4cc
  </code></pre>
  <p>However,when  I access the <code>neo4j service</code> , execute command line <code>curl 10.244.0.29:7474 </code>(pod url) or <code>curl 10.0.0.100:7474</code>(service url), I can get response :</p>
  <pre><code>[root@es3 cafe_ingress]# curl 10.244.0.29:7474
  {
    &quot;bolt_routing&quot; : &quot;neo4j://10.244.0.29:7687&quot;,
    &quot;transaction&quot; : &quot;http://10.244.0.29:7474/db/{databaseName}/tx&quot;,
    &quot;bolt_direct&quot; : &quot;bolt://10.244.0.29:7687&quot;,
    &quot;neo4j_version&quot; : &quot;4.2.1&quot;,
    &quot;neo4j_edition&quot; : &quot;community&quot;
  }[root@es3 cafe_ingress]# curl 10.0.0.100:7474
  {
    &quot;bolt_routing&quot; : &quot;neo4j://10.0.0.100:7687&quot;,
    &quot;transaction&quot; : &quot;http://10.0.0.100:7474/db/{databaseName}/tx&quot;,
    &quot;bolt_direct&quot; : &quot;bolt://10.0.0.100:7687&quot;,
    &quot;neo4j_version&quot; : &quot;4.2.1&quot;,
    &quot;neo4j_edition&quot; : &quot;community&quot;
  }
  </code></pre>
  <p>How can I fix this problem ?
  Look forward for your help , thanks !</p>