apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: keila
  annotations:
    traefik.ingress.kubernetes.io/router.tls: "true"
    traefik.ingress.kubernetes.io/router.tls.certresolver: letsencrypt
    external-dns.alpha.kubernetes.io/target: {{ .cloud.domain }}
    external-dns.alpha.kubernetes.io/cloudflare-proxied: "false"
    traefik.ingress.kubernetes.io/router.middlewares: keila-cors@kubernetescrd
spec:
  rules:
  - host: {{ .apps.keila.domain }}
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: keila
            port:
              number: 80
  tls:
    - secretName: "wildcard-wild-cloud-tls"
      hosts:
        - "{{ .apps.keila.domain }}"
