# Serves the site at https://www.apexturf.es (this is the canonical host —
# see redirect-ingress.yaml for the bare apexturf.es -> www redirect).
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: apex-turf-web
  namespace: apex-turf
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-prod
spec:
  ingressClassName: traefik
  tls:
    - hosts:
        - www.apexturf.es
      secretName: apex-turf-web-tls
  rules:
    - host: www.apexturf.es
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: apex-turf-web
                port:
                  number: 80
