Using Kong with AWS EKS

I’ve deployed Kong on AWS using Helm. Need to terminate the SSL on the LoadBalancer. HTTP request works. HTTPS request fails with “400 Bad Request - The plain HTTP request was sent to HTTPS port” error.

How to configure the Kong Proxy/LB so that things work properly? I’m ok with either HTTP or HTTPS connection behind the LB. It is a requirement for the SSL to be terminated on the LB though.

Another issue is that this creates an LB with a random DNS name. Tried setting but it doesn’t work either. What is the best way to “pin” either the domain name or an IP address to the LB?

Also, this creates a legacy/classic LB. Couldn’t get the k8s service to create an AWS ALB.

Helm Chart overrides:

  enabled: true
    enabled: true
    enabled: true
  annotations: <my-cert-name> http "443"

Installing using:

$ helm repo add kong
$ helm repo update
$ helm install kong kong/kong \
  --atomic \
  -n kong \
  -f overrides.yaml