re: Kubernetes - Redirect HTTP to HTTPS with ELB and the nginx ingress controller VIEW POST


I got the point of putting following into ConfigMap

if ( $http_x_forwarded_proto = http ) {
rewrite .* https://$host$1 permanent;

Can you please paste configmap yaml just want to see the syntax how is above put in there.

Also, listeners are http and https at ELB? Not TCP right


Got this working.
Changed listeners on ELB to HTTP and HTTPS and following annotations on ingress seems to be working. SSL certificate still terminating on ELB.

Ingress annotation "true"

ELB listener setting.

code of conduct - report abuse