Skip to content

Ingress is going on all the nodes #10437

Answered by simonfoilen
simonfoilen asked this question in Q&A
Discussion options

You must be logged in to vote

I downloaded K3S's code and it looks like the problem is that the k3s code is only selecting nodes for LoadBalancer
and if we check the "traefik" service that k3s installs, its LoadBalancer part doesn't have a svccontroller.k3s.cattle.io/lbpool (so it picks all nodes).

So, in other words, that cannot work.

It seems I would need to:

  • disable traefik
  • install traefik myself with
    • 2 services:
      • traefik-tor1_1 : with svccontroller.k3s.cattle.io/lbpool=tor1_1
      • traefik-fra1_1 : with svccontroller.k3s.cattle.io/lbpool=fra1_1
    • 2 Ingress classes
      • traefik-tor1_1
      • traefik-fra1_1
  • Then, I will be able to set on my Ingress the ingressClassName for the right load-balancer pool to use.

You might consid…

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by simonfoilen
Comment options

You must be logged in to vote
5 replies
@simonfoilen
Comment options

@simonfoilen
Comment options

@brandond
Comment options

@simonfoilen
Comment options

@simonfoilen
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #10434 on June 30, 2024 05:56.