Skip to content

Redirect Traffic from HTTP to HTTPS

You can use the annotation to setup an ingress to redirect http traffic to https

Example Ingress Manifest

apiVersion: extensions/v1beta1
kind: Ingress
  namespace: default
  name: ingress
  annotations: alb arn:aws:acm:us-west-2:xxxx:certificate/xxxxxx '[{"HTTP": 80}, {"HTTPS":443}]' '443'
    - http:
         - path: /users/*
           pathType: ImplementationSpecific
             serviceName: user-service
             servicePort: 80
         - path: /*
           pathType: ImplementationSpecific
             serviceName: default-service
             servicePort: 80


  • annotation must at least include [{"HTTP": 80}, {"HTTPS":443}] to listen on 80 and 443.
  • annotation must be set to allow listen for HTTPS traffic
  • the ssl-redirect port must appear in the listen-port annotation, and must be an HTTPS port

How it works

If you enable SSL redirection, the controller configures each HTTP listener with a default action to redirect to HTTPS. The controller does not add any other rules to the HTTP listener.

For the above example, the HTTP listener on port 80 will have a single default rule to redirect traffic to HTTPS on port 443.