apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: stripe-api-demo-ingress
  annotations:
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
spec:
  rules:
  - host: hello.world
    http:
      paths:
      - path: /api/v1/register
        pathType: Prefix
        backend:
          service:
            name: stripe-api-demo
            port:
              number: 80
      - path: /api/v1/subscribe
        pathType: Prefix
        backend:
          service:
            name: stripe-api-demo
            port:
              number: 80
      - path: /api/v1/webhook
        pathType: Prefix
        backend:
          service:
            name: stripe-api-demo
            port:
              number: 80
