I’m trying to create aws-load-balancer with HTTP that directs to the same instance port that the HTTPS protocol talks to.
This is my k8s service:
apiVersion: apiextensions.k8s.io/v1
kind: Service
proxy:
enabled: true
type: LoadBalancer
annotations:
service.beta.kubernetes.io/aws-load-balancer-internal: "true"
service.beta.kubernetes.io/aws-load-balancer-proxy-protocol: '*'
# Note that the backend talks over HTTP.
service.beta.kubernetes.io/aws-load-balancer-backend-protocol: "http"
# Only run SSL on the port named "https" below.
service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "443"
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: '<cert>'
env:
trusted_ips: 0.0.0.0/0,::0
real_ip_recursive: "on"
real_ip_header: X-Forwarded-For
and I’m getting this:
the desired result is this:
what am I missing here? any suggestion?
Thanks