---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: singularity
  namespace: networking
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-production
    external-dns.alpha.kubernetes.io/target: ${DOMAIN}
    nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
spec:
  ingressClassName: nginx
  tls:
    - hosts:
        - singularity.${DOMAIN}
      secretName: singularity-tls
  rules:
    - host: singularity.${DOMAIN}
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: singularity
                port:
                  number: 5001
