title: ingress-nginx Errors connection refused
body: <p>I am trying to access my ingress-nginx service from a service but it gives connection refused. Here is my ingress</p>
  
  <pre class="lang-yaml prettyprint-override"><code>apiVersion: networking.k8s.io/v1beta1
  kind: Ingress
  metadata:
    name: ingress-service
    annotations:
      kubernetes.io/ingress.class: nginx
      nginx.ingress.kubernetes.io/use-regex: "true"
  spec:
    rules:
      - host: ticketing.dev
        http:
          paths:
            - path: /api/users/?(.*)
              backend:
                serviceName: auth-srv
                servicePort: 3000
            - path: /api/tickets/?(.*)
              backend:
                serviceName: tickets-srv
                servicePort: 3000
            - path: /?(.*)
              backend:
                serviceName: client-srv
                servicePort: 3000
  </code></pre>
  
  <pre class="lang-yaml prettyprint-override"><code>apiVersion: v1
  kind: Namespace
  metadata:
    name: ingress-nginx
    labels:
      app.kubernetes.io/name: ingress-nginx
      app.kubernetes.io/part-of: ingress-nginx
  ---
  kind: Service
  apiVersion: v1
  metadata:
    name: ingress-nginx
    namespace: ingress-nginx
    labels:
      app.kubernetes.io/name: ingress-nginx
      app.kubernetes.io/part-of: ingress-nginx
  spec:
    externalTrafficPolicy: Local
    type: LoadBalancer
    selector:
      app.kubernetes.io/name: ingress-nginx
      app.kubernetes.io/part-of: ingress-nginx
    ports:
      - name: http
        port: 80
        protocol: TCP
        targetPort: http
      - name: http
        port: 443
        protocol: TCP
        targetPort: https
  </code></pre>
  
  <pre><code>❯ kubectl get services -n ingress-nginx
  NAME            TYPE           CLUSTER-IP       EXTERNAL-IP      PORT(S)                      AGE
  ingress-nginx   LoadBalancer   10.101.124.218   10.101.124.218   80:30634/TCP,443:30179/TCP   15m
  </code></pre>
  
  <p>The ingress-nginx is running on namespace ingress-nginx.
  So it should be accessible by <code>http://ingress-nginx.ingress-nginx.svc.cluster.local</code>. But when I access it, it says <code>connection refused 10.101.124.218:80</code>. I am able to access the ingress from outside, i.e. from the <code>ingress</code> ip.</p>
  
  <p>I am using minikube and used ingress by running <code>minikube addons enable ingress</code>. Yes and im running the tunnel by <code>minikube tunnel</code></p>