Search code examples
nginxkubernetestraefikk3s

HTTP2 support for Traefik ingress in Kubernetes (K3S)


I use K3S for my Kubernetes cluster. It's really fast and efficient. By default K3S use Traefik for ingress controller which also work well til now.

The only issue I have is, I want to have HTTP2 server push. The service I have is behind the ingress, generates Link header which in the case of NGINX I can simply turn it into the HTTP2 server push (explained here). Is there any same solution for Traefik? Or is it possible to switch to NGINX in K3S?


Solution

  • HTTP2 Push not supported in Traefik yet. See the github open issue #906 for progress on the matter.

    Though, you can safely switch to the nginx ingress controller to accomplish HTTP2 push

    a) helm install stable/nginx-ingress

    b) in your ingress yaml set appropriate annotation

    metadata:
      annotations:
        kubernetes.io/ingress.class: nginx