---
kind: Service
apiVersion: v1
metadata:
  name: nginx-ingress
  namespace: kube-ingress
  labels:
    k8s-addon: nginx-ingress.addons.k8s.io
  annotations:
    service.beta.kubernetes.io/aws-load-balancer-proxy-protocol: '*'
    dns.alpha.kubernetes.io/external: ${LB_DNS_NAME}
    service.beta.kubernetes.io/aws-load-balancer-ssl-cert: ${ACM_CERT_ARN}
    service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "443"
spec:
  type: LoadBalancer
  selector:
    app: nginx-ingress
  ports:
    - name: https
      port: 443
      targetPort: http
