<p>I have troubles configuring ingress service</p>

<p>This is how i configure kubernetes:</p>

<pre><code>apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: web-spa-development-deployment
spec:
template:
  metadata:
    labels:
      app: web-spa-development-291
  spec:
    containers:
    - name: web-spa-development-291
      image: web-spa-development:292
      ports:
      - containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: web-spa-development-service
spec:
  type: NodePort
  selector:
    app: web-spa-development-291
  ports:
    - port: 80
      targetPort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: development-ingress
annotations:
  kubernetes.io/ingress.global-static-ip-name: staging
spec:
tls:
- hosts:
  - dev-app.example.com
  secretName: wildcard-cert 
rules:
- host: dev-app.example.com
  http:
    paths:
    - backend:
        serviceName: web-spa-development-service
        servicePort: 80
      path: /*
    - backend:
        serviceName: web-spa-development-service
        servicePort: 80
      path: /
---
</code></pre>

<p>And in the image itself - a nodejs server, serving on port 80.</p>

<p>When the ingress is up and running - accessing the web app with http/https return the index.html in the response. However it doesnt return any of the static assests - .js, .css, .html.</p>

<p>What could possibly be the problem?</p>

<p>Try this:</p>

<pre><code>apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: development-ingress
  annotations:
    kubernetes.io/ingress.global-static-ip-name: staging
spec:
  tls:
  - hosts:
    - dev-app.example.com
    secretName: wildcard-cert 
  rules:
  - host: dev-app.example.com
    http:
      paths:
      - backend:
          serviceName: web-spa-development-service
          servicePort: 80
</code></pre>

<p>See <a href="https://kubernetes.io/docs/concepts/services-networking/ingress/#name-based-virtual-hosting" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/services-networking/ingress/#name-based-virtual-hosting</a></p>
