traefik-helm-chart icon indicating copy to clipboard operation
traefik-helm-chart copied to clipboard

🔨 Support Traefik v3 features

Open mloiseleur opened this issue 2 years ago • 5 comments
trafficstars

Welcome!

  • [X] Yes, I've searched similar issues on GitHub and didn't find any.
  • [X] Yes, I've searched similar issues on the Traefik community forum and didn't find any.

What did you expect to see?

Following the announcement, this helm chart should provide:

  • [x] openTelemetry support #760
  • [x] default EntryPoints #761
  • [ ] All deprecations removed should trigger a Failling ERROR message when using Traefik v3

mloiseleur avatar Dec 07 '22 15:12 mloiseleur

Just to note - SPIFFE is part of the ServersTransport configuration and can be configured via the CRD, so adding it to the Helm Chart doesn't make much sense, I'll leave it out in this case.

charlie-haley avatar Dec 08 '22 15:12 charlie-haley

Is this chart expected to work with Traefik version 3 mostly as-is? For example if I just switch the Traefik image being used.

sjmiller609 avatar Dec 27 '22 19:12 sjmiller609

I am experimenting with this feature: https://github.com/traefik/traefik/pull/9377

And it did work setting this value:

image:
  # version 3 is in pre-release and has the feature we need
  tag: v3.0.0-beta2

That feature was working in my test environment.

sjmiller609 avatar Dec 27 '22 19:12 sjmiller609

Just a warning for future users reading this:

  • Be sure to read carefully the (WIP) Traefik V3 migration guide: https://doc.traefik.io/traefik/master/migration/v2-to-v3/

mloiseleur avatar Dec 28 '22 14:12 mloiseleur

I think the best way to look at this right now is that Traefik v3 and Traefik v2 both have the same API versions listed in their CRDs traefik.io/v1alpha1 or traefik.containo.us/v1alpha1 but they are actually different APIs. i.e. Traefik is just shipping breaking changes into the same API version because it's an unreleased version. I expect Traefik will update the API version to something different before the official release, sounds like traefik.io/v1 is the plan. So, Traefik version 3 basically works using this helm chart only if you happen to be using only features where open API input validation matches between Traefik version 2 and 3, but it does not always. For example, if you use ipWhiteList instead of ipAllowList, it will just be ignored in Traefik v3, but accepted by the API if you have the v2 version of the CRD installed.

If using Traefik v3, I think users should apply v3 CRDs (find them here and pick exactly the version matching your image) instead of the CRDs in this helm chart.

It might be nice to just have this as an option of the helm chart until Traefik core works out the API versioning questions.

sjmiller609 avatar Oct 09 '23 22:10 sjmiller609