<p>I have the following ingress:</p>
<pre class="lang-yaml prettyprint-override"><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: my-ingress
  namespace: apps
  annotations:
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/custom-http-errors: '404'
spec:
  tls:
    - hosts:
        - mywebsite.com
      secretName: my-secret-tls
  rules:
  - host: mywebsite.com
  - http:
      paths:
        - path: /api/events
          pathType: ImplementationSpecific
          backend:
            service:
              name: my-events-api-svc
              port:
                number: 80
</code></pre>
<p>When I <code>kubectl describe</code> this ingress, I see the following</p>
<pre class="lang-sh prettyprint-override"><code>Name:             my-ingress
Namespace:        apps
Address:          52.206.112.10
Default backend:  default-http-backend:80 (&lt;error: endpoints &quot;default-http-backend&quot; not found&gt;)
TLS:
  my-secret-tls terminates mywebsite.com
Rules:
  Host        Path  Backends
  ----        ----  --------
  *           
              /api/events   my-events-api-svc:80 (10.244.4.145:4000,10.244.5.118:4000)
Annotations:  kubernetes.io/ingress.class: nginx
              nginx.ingress.kubernetes.io/custom-http-errors: 404
Events:
  Type    Reason  Age                From                      Message
  ----    ------  ----               ----                      -------
  Normal  UPDATE  9s (x7 over 153m)  nginx-ingress-controller  Ingress apps/my-ingress

</code></pre>
<p>The issue is that the specified path doesn't work, I'm getting 404. I noticed that in the output above, there is a <code>*</code> under the Host. My other ingresses are configured pretty much the same (only have different paths set), and there is no <code>*</code> in the <code>kubectl describe</code> output. Instead, in my other ingresses the proper Host - &quot;mywebsite.com&quot; - is shown.</p>
<p>The output above also has some error <code>(&lt;error: endpoints &quot;default-http-backend&quot; not found&gt;)</code>, but I see it as well in my other ingresses (that do work).</p>
<p>What could be the problem?</p>

mnj
<p>Its your indentation, please check <a href="https://kubernetes.io/docs/tasks/access-application-cluster/ingress-minikube/#create-an-ingress-resource" rel="nofollow noreferrer">official example</a></p>
<pre><code>spec:
  rules:
    - host: hello-world.info
      http:
        paths:
</code></pre>
<p>Try</p>
<pre><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: my-ingress
  namespace: apps
  annotations:
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/custom-http-errors: '404'
spec:
  tls:
    - hosts:
        - mywebsite.com
      secretName: my-secret-tls
  rules:
  - host: mywebsite.com
    http:
      paths:
        - path: /api/events
          pathType: ImplementationSpecific
          backend:
            service:
              name: my-events-api-svc
              port:
                number: 80
</code></pre>
