apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: trifid
  annotations:
    kubernetes.io/tls-acme: "true"
    ingress.kubernetes.io/ssl-redirect: "true"
    external-dns.alpha.kubernetes.io/hostname: gont-ch.zazuko.net
    nginx.ingress.kubernetes.io/from-to-www-redirect: "true"
spec:
  tls:
    - secretName: gont-ch-cert
      hosts:
        - gont.ch
        - www.gont.ch

  rules:
    - host: gont.ch
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: trifid
                port:
                  number: 80
