kubernetes-ingress icon indicating copy to clipboard operation
kubernetes-ingress copied to clipboard

Define the TLS ALPN extension advertisement for https frontend

Open cristian-aldea opened this issue 5 years ago • 1 comments

Our team has been using the jcmoraisjr/haproxy-ingress implementation for a while in our cluster and we wanted to switch and use the official implementation offered here at haproxytech/kubernetes-ingress.

One critical configuration we use from the jcmoraisjr implementation is tls-alpn. Our current usecase requires us to use HTTP/1 for some applications or they don't work properly. We set tls-alpn to http/1.1, which changes the bind in the https frontend and makes it so only http 1.1 traffic is allowed for our cluster

Unfortunately, during migration to using the haproxytech implementation, we couldn't find an equivalent configuration for the configmap which would set the alpn advertisement to only http/1.1.

Essentially, in the final haproxy.cfg which is generated in the haproxytech/kubernetes-ingress deployment, we currently have something similar to this in the https frontend:

frontend https
  ...
  bind 127.0.0.1:443 name v4 crt /etc/haproxy/certs/frontend ssl alpn h2,http/1.1 accept-proxy
  bind :::443 name v6 crt /etc/haproxy/certs/frontend ssl v4v6 alpn h2,http/1.1 accept-proxy
  ...

and we want for alpn to be set to http/1.1 instead of h2,http/1.1.

Is this possible with the current configuration options you offer? If not, would you know of any workarounds which could help us disable http 2 for our ingress controller?

cristian-aldea avatar Sep 07 '21 16:09 cristian-aldea

Fixed with PR. Thanks.

ivanmatmati avatar Oct 18 '21 14:10 ivanmatmati