<p>I am trying to add multiple Ingresses which should share the same host.
One Ingress should handle requests to www.example.de/some and the one all other requests.</p>

<p>Here is a snipped with the Ingress configurations</p>

<pre><code>apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: some-ingress
  annotations:
    kubernetes.io/ingress.class: "nginx"
spec:
  rules:
  - host: "www.example.de"
    http:
      paths:
      - path: "/some"
        backend:
          serviceName: some-svc
          servicePort: 8585
</code></pre>

<hr>

<pre><code>apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: other-ingress
  annotations:
    kubernetes.io/ingress.class: "nginx"
spec:
  rules:
  - host: "www.example.de"
    http:
      paths:
      - backend:
          serviceName: other-svc
          servicePort: 8080
</code></pre>

<p>As an ingress-controller I installed the <code>nginx-stable/nginx-ingress</code> via Helm</p>

<pre><code>helm install my-ingress nginx-stable/nginx-ingress
</code></pre>

<p>When attempting to create the two Ingresses from above only one is working when trying to access www.example.de (this is mapped to 127.0.0.1 in my /etc/hosts).</p>

<p>In the nginx-ingress log is see the following warnings:</p>

<blockquote>
  <p>2020/01/08 09:33:51 [warn] 560#560: conflicting server name "www.example.de" on 0.0.0.0:80, ignored</p>
  
  <p>2020/01/08 09:33:51 [warn] 560#560: conflicting server name "www.example.de" on 0.0.0.0:443, ignored</p>
</blockquote>

<p>Turns out that I was using the wrong <code>nginx-ingress</code> controller. The <a href="https://github.com/nginxinc/kubernetes-ingress" rel="nofollow noreferrer"><code>nginxinc/kubernetes-ingress</code></a> controller does not support merging Ingress rules with the same host (only via <a href="https://github.com/nginxinc/kubernetes-ingress/tree/master/examples/mergeable-ingress-types" rel="nofollow noreferrer">Mergeable Ingresses</a>).</p>
<p>Instead the <a href="https://github.com/kubernetes/ingress-nginx" rel="nofollow noreferrer"><code>kubernetes/ingress-nginx</code></a> should be used.
The differences between these controllers are listed <a href="https://docs.nginx.com/nginx-ingress-controller/intro/nginx-ingress-controllers/" rel="nofollow noreferrer">here</a>.</p>
<p>Deleting the old controller and installing <code>kubernetes/ingress-nginx</code> instead using the following command fixed the problem.</p>
<pre><code>helm install my-nginx stable/nginx-ingress
</code></pre>
<p>See <a href="https://kubernetes.github.io/ingress-nginx/deploy/#using-helm" rel="nofollow noreferrer">https://kubernetes.github.io/ingress-nginx/deploy/#using-helm</a></p>
