Kong with AWS Application Load Balancer

Hi
I was trying to Generate AWS ALB through All-in-one-kong-deployment.yaml, but its not working, can anyone help me regarding this?
Snippet where i suppose to tell ALB created i.e at KONG-PROXY-SERVICE k8 object as follows:

################################################
apiVersion: v1
kind: Service
metadata:
name: kong-proxy
namespace: kong2
annotations:
# # Cloud-provider specific annotations
# # GKE
# # GKE creates a L4 LB for any service of type LoadBalancer
# # TODO figure out how to enable Proxy Protocol on an L4 LB for GKE
# # AWS
# # Use NLB over ELB
service.beta.kubernetes.io/aws-load-balancer-type: “alb”
# # Use L4 LB so that Kong can do TLS termination
# service.beta.kubernetes.io/aws-load-balancer-backend-protocol: tcp
# # Enable Proxy Protocol when Kong is listening for proxy-protocol
# #service.beta.kubernetes.io/aws-load-balancer-proxy-protocol: '
#service.beta.kubernetes.io/aws-load-balancer-backend-protocol: tcp
service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout: “3600”
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: arn:aws:acm:us-
************************************************************
service.beta.kubernetes.io/aws-load-balancer-ssl-ports: ‘*’
spec:
externalTrafficPolicy: Local
type: LoadBalancer
ports:

  • name: kong-proxy
    port: 80
    targetPort: 8000
    protocol: TCP
  • name: kong-proxy-ssl
    port: 443
    targetPort: 8000
    protocol: TCP
    selector:
    app: kong
    ##############################

Please help me with this.

Thanks,

Please elaborate on what is not working. Is the LoadBalancer not being provisioned or are you having trouble in forwarding traffic from the LoadBalancer to Kong?

Hi Harry,

I am able to create Classic Loadbalancer and Network Loadbalancer as well. But when I opt for Application Load Balancer, it creates CLB only not a ALB on AWS account.
service.beta.kubernetes.io/aws-load-balancer-type: “alb”

I guess in above line , We mention whether we have to create CLB or NLB or ALB. Help me with this.

This is an EKS specific issue. Please reach out to AWS for more help on this.
The following gist might somewhat help:

Eks doesn’t looks like it supports alb without using alb ingresss controller
https://docs.aws.amazon.com/eks/latest/userguide/load-balancing.html

Alb
https://docs.aws.amazon.com/eks/latest/userguide/alb-ingress.html


© 2019 Kong Inc.    Terms  •  Privacy  •  FAQ