title: AWS EKS configure HTTPS listener
body: <p>I want to secure my web service running on Kubernetes (EKS). It is running on port 80 .I want to run this on port 443.</p>
  <p>When I apply the YAML file (for service and ingress), on AWS console I still have it listening on port 80 (and not on 443):
  <a href="https://i.stack.imgur.com/sRhnC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sRhnC.png" alt="enter image description here" /></a></p>
  <p>This is my YAML file:
  How can I let it works? Thanks for you time!</p>
  <pre class="lang-yaml prettyprint-override"><code>   #SERVICE LOGGER
     apiVersion: v1
     kind: Service
     metadata:
       name: load-balancer-api-logger
       namespace: servicename-core-ns
       annotations:
         service.beta.kubernetes.io/aws-load-balancer-ssl-cert: arn:aws:acm:eu-central-1:786543355018:certificate/acdff29d4-7a32-42f1-8f11-1d4f495a5c77
         service.beta.kubernetes.io/aws-load-balancer-ssl-ports: &quot;443&quot;
         service.beta.kubernetes.io/aws-load-balancer-backend-protocol: http
         service.beta.kubernetes.io/force-ssl-redirect: &quot;true&quot;
     spec:
       selector:
         app: api-logger
       type: NodePort
       ports:
       - protocol: TCP
         port: 443
         targetPort: 5000
       selector:
         app.kubernetes.io/name: api-logger
     ---
     
     apiVersion: networking.k8s.io/v1
     kind: Ingress
     metadata:
       name: ingress-articor
       namespace: servicename-core-ns
       annotations:
         kubernetes.io/ingress.class: alb
         alb.ingress.kubernetes.io/scheme: internet-facing
         alb.ingress.kubernetes.io/target-type: instance
         alb.ingress.kubernetes.io/healthcheck-path: &quot;/healthcheckep&quot;
         alb.ingress.kubernetes.io/listen-ports: '[{&quot;HTTP&quot;: 80}, {&quot;HTTPS&quot;: 443}]'
         alb.ingress.kubernetes.io/ssl-redirect: '443'
     spec:
       rules:
         - host: logger.domainname.com
           http:
             paths:
               - path: &quot;/&quot;
                 pathType: Prefix
                 backend:
                   service:
                     name: load-balancer-api-logger
                     port: 
                       number: 80
  
  </code></pre>
  <p>Please consider that if I try to manually set the ALB to work with HTTPS it works fine. What I'm trying to achive here is to configure it via YAML file.</p>