---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    external-dns.alpha.kubernetes.io/target: "ipv4.${SECRET_PUBLIC_DOMAIN}"
    external-dns/is-public: "true"
    kubernetes.io/ingress.class: "nginx"

    cert-manager.io/cluster-issuer: letsencrypt-production
  name: s3
  namespace: external
spec:
  rules:
    - host: s3.${SECRET_PUBLIC_DOMAIN}
      http:
        paths:
          - pathType: Prefix
            path: /
            backend:
              service:
                name: s3
                port:
                  number: 9768
  tls:
    - hosts:
        - s3.${SECRET_PUBLIC_DOMAIN}
      secretName: s3-tls
