How to configure traefik to be the loadbalancer and ingress for the cluster? #1028
-
I realize this may not be the ideal spot to ask this question, but as k3d is aimed at spinning up clusters easily, this may even be a feature for the future. Anyway, I am trying to setup a k3s cluster using k3d that's managed by portainer and load-balanced by treafik, which should also handle ingress. On an ARM64 board with 4GB of RAM and 6 cores, if that matters. This is what I got so far: Create the cluster without traefikv1
Install and expose portainer UI port:
Get and modify traefikv2 helm-manifest to expose ports 80 and 443 for http and https ingress, and install
Also set
After that deploy any application in portainer (e.g. httpd) and give it a route by configuring traefik as ingress in the cluster setup and then setting it for the application. When I do that, I only ever get 404 errors from any route; which is kind of better than "refused to connect" but not quite success either. So my guess is portainer cannot set the routes of traefik, but at this point I am thoroughly stuck. I realize it must be some kind of kubernetes setting in the values.yaml of traefik, but on the other hand, most of that should be auto discovered as far as I understood the traefik docs, so I wonder if it isn't still a port-forwarding error on my part. Additionally, this seems as I said above, like a pretty useful feature to have; to setup k3s with traefikv2 for ingress and LB, so I was hoping to maybe get some help here and also humbly request to add this as a feature if it ends up working. Thank you very much in advance for any help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hi @Mithrandir2k18 , thanks for starting this discussion!
But you just disabled that with |
Beta Was this translation helpful? Give feedback.
Hi @Mithrandir2k18 , thanks for starting this discussion!
I'm a bit confused though...
But you just disabled that with
--k3s-arg "--disable=traefik@server:0"
.I guess you're thinking of older versions of K3s. K3s switched to Traefik v2 quite some time ago (I think in 1.20 as per k3s-io/k3s#2910).