apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-production
  name: APP_NAME-ingress
  namespace: APP_NAME-system
spec:
  rules:
    - host: APP_NAME.DOMAIN
      http:
        paths:
          - pathType: Prefix
            path: /
            backend:
              service:
                name: APP_NAME-svc
                port:
                  number: 80
  tls: # < placing a host in the TLS config will determine what ends up in the cert's subjectAltNames
    - hosts:
        - APP_NAME.DOMAIN
      secretName: APP_NAME-ingress-cert