apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: todo-app-ingress
  namespace: todo-namespace
spec:
  rules:
  - http:
      paths:
      - path: /*
        pathType: ImplementationSpecific
        backend:
          service:
            name: todo-frontend-svc
            port:
              number: 2347
      - path: /todos
        pathType: ImplementationSpecific
        backend:
          service:
            name: todo-backend-svc
            port:
              number: 2348
      - path: /generaterandomtodo
        pathType: ImplementationSpecific
        backend:
          service:
            name: todo-backend-svc
            port:
              number: 2348
      - path: /background
        pathType: ImplementationSpecific
        backend:
          service:
            name: todo-backend-svc
            port:
              number: 2348
