traefik-helm-chart
traefik-helm-chart copied to clipboard
Revert split LoadBalancers to single LoadBalancer with mixed protocols
Commit 6d60914 acted as a work-around for LoadBalancers' single protocol requirement (see bergmannf's comment on #145). Kubernetes now supports LoadBalancers with mixed protocols (kubernetes/kubernetes#94028).
This commit reverts the original work-around to reintroduce a single TCP/UDP LoadBalancer for Traefik, cutting LoadBalancer costs in half.
Note: The mixed-protocol LoadBalancers are planned to be included in Kubernetes milestone v1.20.
As this PR relies on Kubernetes 1.20, a backwards-compatibility check could be introduced to rely on the current implementation for pre-1.20 clusters.
Hello @0xThiebaut,
thanks for your PR.
Can you add some unit test please? :)
Yes, will add some this week.
Hello @0xThiebaut,
any updates? :)
I am not that familiar with the testing suite. Do you have any advise on how I can ensure the testing suite behaves differently depending on the Kubernetes version?
From the helm-unittest documentation it seems quite limited and the current service's UDP test will definitely fail given it looks for the second LoadBalancer which will now be out of bounds if Kubernetes v1.20+ is used.
Since the mixed protocols is beta as of 1.24, we should looking at updating this PR with proper testing and merging it.
Superseded by #656