Skip to content

Ensure disableHTTP2 works with k8s crd#8448

Merged
traefiker merged 2 commits intotraefik:v2.5from
ssboisen:ensure_disablehttp2_works_on_k8s
Sep 16, 2021
Merged

Ensure disableHTTP2 works with k8s crd#8448
traefiker merged 2 commits intotraefik:v2.5from
ssboisen:ensure_disablehttp2_works_on_k8s

Conversation

@ssboisen
Copy link
Contributor

@ssboisen ssboisen commented Sep 15, 2021

What does this PR do?

This PR ensures that disabling http2 works when using the kubernetes ServersTransport CRD. I have added a test verifying that it works now. Previously setting the disableHTTP2 field in the CRD did not change that configuration option.

Motivation

We host traefik as an ingress loadbalancer for a number of application servers running on k8s that do not support http2 - when trying to disable http2 we kept seeing errors on our application servers indicating that http2 had not been disabled.

More

  • Added/updated tests
  • Added/updated documentation

Additional Notes

From my review of the code when implementing this change it looks like the PeerCertURI option in the CRD is also not being translated into a proper configuration of traefik. However I have not functionally verified this as we do not utilize this feature.

Copy link
Collaborator

@jbdoumenjou jbdoumenjou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@rtribotte rtribotte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@traefiker traefiker force-pushed the ensure_disablehttp2_works_on_k8s branch from c4d0497 to c41d3f2 Compare September 16, 2021 09:36
@traefiker traefiker merged commit 6f8e8ea into traefik:v2.5 Sep 16, 2021
@ssboisen ssboisen deleted the ensure_disablehttp2_works_on_k8s branch September 16, 2021 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants