title: How to set AWS ALB ingress default action for non ssl and ssl ports
body: <p>I am using alb ingress controller and the ingress yaml file is pasted below.</p>
  <pre><code>apiVersion: extensions/v1beta1
  kind: Ingress
  metadata:
    namespace: default
    name: alb-ingress
    annotations:
      kubernetes.io/ingress.class: alb
      alb.ingress.kubernetes.io/certificate-arn: arn:aws:acm:us-east-1:123456789123:certificate/xxxxxxx-yyyy-zzzz-abce-ffffffffffff
      alb.ingress.kubernetes.io/scheme: internet-facing
      alb.ingress.kubernetes.io/security-groups: sg-xxxxxxxxxxxxxx
      alb.ingress.kubernetes.io/listen-ports: '[{&quot;HTTP&quot;: 80}, {&quot;HTTPS&quot;:443}]'
      alb.ingress.kubernetes.io/actions.ssl-redirect: '{&quot;Type&quot;: &quot;redirect&quot;, &quot;RedirectConfig&quot;: { &quot;Protocol&quot;: &quot;HTTPS&quot;, &quot;Port&quot;: &quot;443&quot;, &quot;StatusCode&quot;: &quot;HTTP_301&quot;}}'
  spec:
    rules:
      - http:
          paths:
           - path: /*
             backend:
               serviceName: ssl-redirect
               servicePort: use-annotation
      - host: domain.com
        http:
         paths:
         - backend:
            serviceName: greensvc
            servicePort: 80
           path: /green
         - backend:
            serviceName: redsvc
            servicePort: 80
           path: /red
      - host: mongo.domain.com
        http:
         paths:
         - backend:
            serviceName: mongo-express-service
            servicePort: 8081
  
  </code></pre>
  <p>corresponding rules in ALB is</p>
  <p><a href="https://i.stack.imgur.com/MXgwU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MXgwU.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/EJgd3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EJgd3.png" alt="enter image description here" /></a></p>
  <p>ALB was deployed successfully but the logs from ingress &quot;alb-ingress&quot; reported two error</p>
  <pre><code>/*   ssl-redirect:use-annotation (&lt;error: endpoints &quot;ssl-redirect&quot; not found&gt;)
  
  Default backend:  default-http-backend:80 (&lt;error: endpoints &quot;default-http-backend&quot; not found&gt;)
  </code></pre>
  <p>what I am trying to achieve is to create a single default action (no need of any other rules) on port 80 which is forcing the https traffic. A default action in https port that is forwarded to a service, Along with other host or path based routing as per the scrren shot.  Currently both default action is set to return a fixed responce 404.</p>
  <p>How can I modify current yaml file  such that the ALB rules will be updated as per my interest. Also why the ingress is logging the annotation error for ssl-redirect.</p>