apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: riichi-pointer
  namespace: riichi
  annotations:
    kubernetes.io/ingress.class: "nginx"
    nginx.ingress.kubernetes.io/rewrite-target: /$1
    nginx.ingress.kubernetes.io/service-upstream: "true"
spec:
  rules:
  - host: tools.phil.moe
    http:
      paths:
      - path: /riichi/pointer/?(.*)
        pathType: Prefix
        backend:
          service:
            name: riichi-pointer-web
            port:
              number: 80