<p>In my Kubernetes Cluster i have some challenges with the Ingress. As example i installed NodeRed und the Nginx-ingress via Helm. NodeRed is available via</p>

<ul>
<li>FQDN: <a href="http://my.server.name:31827" rel="nofollow noreferrer">http://my.server.name:31827</a></li>
<li>IP: <a href="http://10.x.x.x:31827" rel="nofollow noreferrer">http://10.x.x.x:31827</a></li>
</ul>

<p>Now i created an Ingress: </p>

<pre><code>apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
  name: nr-ingress
  annotations:
    nginx.ingress.kubernetes.io/rewrite-target: /
spec:
  tls:
  - secretName: tls-secret1
    hosts:
    - my.server.name
  rules:
  - host: my.server.name
    http:
      paths:
      - path: /nr
        backend:
          serviceName: my-nodered-node-red
          servicePort: 1880
</code></pre>

<p>When i do a Get <a href="http://my.server.name/nr" rel="nofollow noreferrer">http://my.server.name/nr</a> i see only parts working, see the screenshot:</p>

<p><a href="https://i.stack.imgur.com/3gVFP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3gVFP.png" alt="enter image description here"></a></p>

<p>It looks to me, that i missed the reverse proxy settings. Normally i would place those things in a reverse proxy setting in the nginx like this. But this is not possible because i am using the Nginx-ingress. </p>

<pre><code>location / {
     proxy_pass http://localhost:1880/;
    }
</code></pre>

<p>But i do not know how to do that in Kubernetes ? What do i miss ? kubernetes version is 1.14.1.</p>

Mchoeti
<p>Maybe too late for the answer, but I had the same problem and solve it:</p>
<p>1-changed httpRoot: '/nr' in node red settings.xml configuration file (in kubernetes, probably defined in a PV) (@vasili-angapov mentions)</p>
<p>2- set ingress:</p>
<pre><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: nodered-ingress
  annotations:
    kubernetes.io/ingress.class: &quot;nginx&quot;
spec:
  rules:
    - http:
        paths:
          - path: /nr
            pathType: Prefix
            backend:
              service:
                name: nodered
                port:
                  number: 1880
</code></pre>
