Kubernetes HTTP to HTTPS Redirect on AWS with ELB terminating SSL
The issue was the target port I was using on the load balancer not matching the port the redirection server was listening on:
ports: - name: http port: 80 protocol: TCP targetPort: http
This was just sending everything to port 80. It should have been this:
ports: - name: http port: 80 protocol: TCP targetPort: 8080
That way it matches up with the ConfigMap's:
data: ... http-snippet: | server { listen 8080 proxy_protocol; server_tokens off; return 307 https://$host$request_uri; }