apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: hitrecord-ingress
spec:
  ingressClassName: nginx
  rules:
  - host: hitrecord.example.com
    http:
      paths:
      - path: /api/v1
        pathType: Prefix
        backend:
          service:
            name: hit-record-api-v1-service
            port:
              number: 80
      - path: /api/v2
        pathType: Prefix
        backend:
          service:
            name: hit-record-api-v2-service
            port:
              number: 80