# istio_simple.yaml
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: foo
  namespace: ns
spec:
  rules:
  - host: foohost.bar.com
    http:
      paths:
        # Simple path
      - path: /path
        backend:
          service:
            name: service1
            port:
              number: 4200
        # Subpath without trailing /
      - path: /sub/path
        backend:
          service:
            name: service1
            port:
              number: 4201
      # With a trailing /
      - path: /sub/path/
        backend:
          service:
            name: service1
            port:
              number: 4202
      # Regex ending with .*
      - path: /regex1.*
        backend:
          service:
            name: service1
            port:
              number: 4203
      # Regex ending with *
      - path: /regex2*
        backend:
          service:
            name: service1
            port:
              number: 4204
      # Regex ending with /*
      - path: /regex3/*
        backend:
          service:
            name: service1
            port:
              number: 4205
      # Subpath without trailing /, Exact match
      - path: /sub/path
        pathType: Exact
        backend:
          service:
            name: service1
            port:
              number: 4206
        # With a trailing /, Exact match
      - path: /sub/path/
        pathType: Exact
        backend:
          service:
            name: service1
            port:
              number: 4207
      # Subpath without trailing /, Prefix match
      - path: /sub/path
        pathType: Prefix
        backend:
          service:
            name: service1
            port:
              number: 4208
        # With a trailing /, Prefix match
      - path: /sub/path/
        pathType: Prefix
        backend:
          service:
            name: service1
            port:
              number: 4209