apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: ingress
  annotations:
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/ssl-redirect: "false"
    nginx.ingress.kubernetes.io/use-regex: "true"
    nginx.ingress.kubernetes.io/rewrite-target: /$2
spec:
  rules:
  - http:
      paths:
      - path: /hello-world-one(/|$)(.*)
        pathType: Prefix
        backend:
          service:
            name: agent
            port:
              number: 8024
      - path: /agent-admin(/|$)(.*)
        pathType: Prefix
        backend:
          service:
            name: agent
            port:
              number: 8024
      - path: /agent-http-inbound(/|$)(.*)
        pathType: Prefix
        backend:
          service:
            name: agent
            port:
              number: 8021
      - path: /agent-ws-inbound(/|$)(.*)
        pathType: Prefix
        backend:
          service:
            name: agent
            port:
              number: 8026
      - path: /issuer-api(/|$)(.*)
        pathType: Prefix
        backend:
          service:
            name: issuer-api
            port:
              number: 5000
      - path: /immunization(/|$)(.*)
        pathType: Prefix
        backend:
          service:
            name: immunization-api
            port:
              number: 5001
