Possible to have both an l4 and l7 ingress-nginx?

2/28/2019

Is it possible to have ingress-nginx serve both l4 and l7 in with one ELB? I'm assuming that it's not based on the following annotation:

service.beta.kubernetes.io/aws-load-balancer-proxy-protocol: "*"

I'm hoping somebody tells me that I'm wrong ;)

-- Jerry Bad Things
kubernetes
nginx-ingress

1 Answer

3/7/2019

L4 load balancer is actually forwarding traffic to the Nodeport. I would say that this is not possible just because ingress-nginx acts as balancer, that only forwards HTTP and HTTPS traffic.

However you can look into NGINX Plus side:

In NGINX Plus Release 5 and later, NGINX Plus can proxy and load balance Transmission Control Protocol) (TCP) traffic. TCP is the protocol for many popular applications and services, such as LDAP, MySQL, and RTMP.

In NGINX Plus Release 9 and later, NGINX Plus can proxy and load balance UDP traffic. UDP (User Datagram Protocol) is the protocol for many popular nontransactional applications, such as DNS, syslog, and RADIUS

Also, check this post to be familiar on how it works.

-- VKR
Source: StackOverflow