Setting Up TCPRoutes and UDPRoutes in K3S with Traefik

0
13
Asked By TechieGamer2023 On

I've been diving into K3S and Kubernetes, setting it up on a Fedora VM. Currently, I've got Traefik up and running using Helm, following the recent documentation for the Gateway API, which is replacing Ingress. Everything is working smoothly—I can access the Traefik dashboard through traefik.k3s.local. Now I want to extend my setup to include TCPRoutes and UDPRoutes for a deployment running Syncthing. I've seen that Traefik requires an 'experimentalChannel' setting to support these routes, and I added that to my HelmChartConfig manifest. However, I'm running into errors when I try to create TCPRoute or UDPRoute, stating that the resources can't be found and that the Custom Resource Definitions (CRDs) may not be installed. I've already confirmed that I'm using the right configurations, but I'm not sure how to proceed without messing up my existing Traefik setup. Any suggestions?

3 Answers

Answered By LoneWolfCoder On

I had a similar issue. When I applied the manifest for the experimental CRDs using `kubectl apply --server-side`, that did the trick for me. It might not be the cleanest method, but if it works, it’s good enough! Just keep an eye on your CRD versions in case of future updates.

Answered By CleverCoder88 On

You're facing a classic issue with K3S and Traefik regarding CRDs. It looks like the Traefik chart in K3S has separated the CRDs, and right now, the experimental ones aren’t included by default. You'll need to grab the manifest for the TCPRoute and UDPRoute CRDs separately and install them yourself. Just ensure that you're using the correct versions to match up with your Traefik installation.

Answered By DevWizard42 On

Yeah, just as said, you’ll have to manually install the CRDs for TCPRoute and UDPRoute. It's a bit of a hassle, but it's necessary for Traefik to recognize them. You can apply the experimental CRDs from the GitHub releases page linked in the documentation. After that, Traefik should pick them up once they’re installed.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.