# services/hermes/agent-ingress.yaml
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: hermes-sites
  namespace: hermes
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt
    traefik.ingress.kubernetes.io/router.entrypoints: websecure
    traefik.ingress.kubernetes.io/router.tls: "true"
spec:
  ingressClassName: traefik
  tls:
    - hosts:
        - agent.hermes.bstein.dev
        - chat.hermes.bstein.dev
        - triage.hermes.bstein.dev
      secretName: hermes-sites-tls
  rules:
    - host: agent.hermes.bstein.dev
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: oauth2-proxy-hermes-agent
                port:
                  name: http
    - host: chat.hermes.bstein.dev
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: oauth2-proxy-hermes-chat
                port:
                  name: http
    - host: triage.hermes.bstein.dev
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: oauth2-proxy-hermes-triage
                port:
                  name: http
