apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: website-ingress-service
  namespace: website-prod  
  annotations:
    kubernetes.io/ingress.class: 'nginx'
    nginx.ingress.kubernetes.io/use-regex: 'true'
    nginx.ingress.kubernetes.io/rewrite-target: /$1
spec:
  rules:
    - host: nikodemwrona.dev
      http:
        paths:
          - path: /?(.*)
            pathType: Prefix
            backend:
              service:
                name: website-cluster-ip-service
                port:
                  number: 3000
    - host: www.nikodemwrona.dev
      http:
        paths:
          - path: /?(.*)
            pathType: Prefix
            backend:
              service:
                name: website-cluster-ip-service
                port:
                  number: 3000
