Creating a AWS ELB serving http and https with Kubernetes
Here's the incantation for terminating TLS at ELB using the AWS cert
apiVersion: v1kind: Servicemetadata: annotations: service.beta.kubernetes.io/aws-load-balancer-backend-protocol: http service.beta.kubernetes.io/aws-load-balancer-ssl-cert: arn:aws:acm:foo service.beta.kubernetes.io/aws-load-balancer-ssl-ports: https labels: k8s-addon: ingress-nginx.addons.k8s.io name: ingress-nginxspec: ports: - name: http port: 80 protocol: TCP targetPort: http - name: https port: 443 protocol: TCP targetPort: http selector: app: ingress-nginx type: LoadBalancer
If you want to force SSL you do that at the ingress resource definition with ingress.kubernetes.io/ssl-redirect
annotation