apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: wcag-ada-ingress
  namespace: wcag-ada
  annotations:
    nginx.ingress.kubernetes.io/rewrite-target: /
    cert-manager.io/cluster-issuer: "letsencrypt-prod"
    nginx.ingress.kubernetes.io/ssl-redirect: "true"
    nginx.ingress.kubernetes.io/proxy-body-size: "10m"
spec:
  ingressClassName: nginx
  tls:
  - hosts:
    - wcag-ada.example.com
    - api.wcag-ada.example.com
    secretName: wcag-ada-tls
  rules:
  - host: wcag-ada.example.com
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: wcag-ada-dashboard-service
            port:
              number: 80
  - host: api.wcag-ada.example.com
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: wcag-ada-api-service
            port:
              number: 3001