---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: ai-ingress
  annotations:
    cert-manager.io/cluster-issuer: "letsencrypt-prod"
spec:
  ingressClassName: nginx
  tls:
  - hosts:
    - dexorder.ai
    secretName: dexorder-ai-tls
  rules:
  - host: dexorder.ai
    http:
      paths:
      # Web application at root
      - path: /
        pathType: Prefix
        backend:
          service:
            name: ai-web
            port:
              number: 5173
