apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: nextcloud annotations: cert-manager.io/cluster-issuer: letsencrypt external-dns.alpha.kubernetes.io/hostname: nextcloud.distrust.co spec: ingressClassName: nginx rules: - host: nextcloud.distrust.co http: paths: - path: / pathType: Prefix backend: service: name: nextcloud port: number: 80 tls: - hosts: - nextcloud.distrust.co secretName: website-tls